From 66aa4a16065f5d6ef0a07e6c2bb107ab87d4bfd5 Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Mon, 25 Jan 2016 20:22:58 +0200 Subject: [PATCH] Added beep on some notifications --- Crypto Notepad/ChangeKeyForm.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Crypto Notepad/ChangeKeyForm.cs b/Crypto Notepad/ChangeKeyForm.cs index 4ff8d40..d77d5a7 100644 --- a/Crypto Notepad/ChangeKeyForm.cs +++ b/Crypto Notepad/ChangeKeyForm.cs @@ -1,4 +1,5 @@ using System; +using System.Media; using System.Threading.Tasks; using System.Windows.Forms; @@ -29,6 +30,7 @@ private async void button1_Click(object sender, EventArgs e) if (textBox1.Text != MainWindow.encryptionKey) { + SystemSounds.Beep.Play(); statusLabel.Text = "Invalid old key!"; statusLabel.Visible = true; textBox1.Text = ""; @@ -38,6 +40,7 @@ private async void button1_Click(object sender, EventArgs e) if (textBox1.Text == textBox2.Text) { + SystemSounds.Beep.Play(); statusLabel.Text = "New key is the same as old!"; statusLabel.Visible = true; textBox1.Text = "";