mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Added beep on some notifications
This commit is contained in:
parent
126fcf5aec
commit
66aa4a1606
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Media;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
|
@ -29,6 +30,7 @@ private async void button1_Click(object sender, EventArgs e)
|
||||||
|
|
||||||
if (textBox1.Text != MainWindow.encryptionKey)
|
if (textBox1.Text != MainWindow.encryptionKey)
|
||||||
{
|
{
|
||||||
|
SystemSounds.Beep.Play();
|
||||||
statusLabel.Text = "Invalid old key!";
|
statusLabel.Text = "Invalid old key!";
|
||||||
statusLabel.Visible = true;
|
statusLabel.Visible = true;
|
||||||
textBox1.Text = "";
|
textBox1.Text = "";
|
||||||
|
|
@ -38,6 +40,7 @@ private async void button1_Click(object sender, EventArgs e)
|
||||||
|
|
||||||
if (textBox1.Text == textBox2.Text)
|
if (textBox1.Text == textBox2.Text)
|
||||||
{
|
{
|
||||||
|
SystemSounds.Beep.Play();
|
||||||
statusLabel.Text = "New key is the same as old!";
|
statusLabel.Text = "New key is the same as old!";
|
||||||
statusLabel.Visible = true;
|
statusLabel.Visible = true;
|
||||||
textBox1.Text = "";
|
textBox1.Text = "";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue