Changed error sounds while changing the encryption key

This commit is contained in:
Alexander 2019-10-15 20:02:10 +03:00
parent 71dad53ea5
commit 620aae8459

View file

@ -31,7 +31,7 @@ private async void AcceptButton_Click(object sender, EventArgs e)
}
else if (oldKeyTextBox.Text != PublicVar.encryptionKey.Get())
{
SystemSounds.Beep.Play();
SystemSounds.Hand.Play();
statusLabel.ForeColor = Color.Red;
statusLabel.Text = "Invalid old key";
statusLabel.Visible = true;
@ -42,7 +42,7 @@ private async void AcceptButton_Click(object sender, EventArgs e)
}
else if(oldKeyTextBox.Text == newKeyTextBox.Text)
{
SystemSounds.Beep.Play();
SystemSounds.Hand.Play();
statusLabel.ForeColor = Color.Red;
statusLabel.Text = "New key is the same as old";
statusLabel.Visible = true;