Added beep on some notifications

This commit is contained in:
Sigmanor 2016-01-25 20:22:58 +02:00
parent 126fcf5aec
commit 66aa4a1606

View file

@ -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 = "";