mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Changed error sounds while changing the encryption key
This commit is contained in:
parent
71dad53ea5
commit
620aae8459
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ private async void AcceptButton_Click(object sender, EventArgs e)
|
||||||
}
|
}
|
||||||
else if (oldKeyTextBox.Text != PublicVar.encryptionKey.Get())
|
else if (oldKeyTextBox.Text != PublicVar.encryptionKey.Get())
|
||||||
{
|
{
|
||||||
SystemSounds.Beep.Play();
|
SystemSounds.Hand.Play();
|
||||||
statusLabel.ForeColor = Color.Red;
|
statusLabel.ForeColor = Color.Red;
|
||||||
statusLabel.Text = "Invalid old key";
|
statusLabel.Text = "Invalid old key";
|
||||||
statusLabel.Visible = true;
|
statusLabel.Visible = true;
|
||||||
|
|
@ -42,7 +42,7 @@ private async void AcceptButton_Click(object sender, EventArgs e)
|
||||||
}
|
}
|
||||||
else if(oldKeyTextBox.Text == newKeyTextBox.Text)
|
else if(oldKeyTextBox.Text == newKeyTextBox.Text)
|
||||||
{
|
{
|
||||||
SystemSounds.Beep.Play();
|
SystemSounds.Hand.Play();
|
||||||
statusLabel.ForeColor = Color.Red;
|
statusLabel.ForeColor = Color.Red;
|
||||||
statusLabel.Text = "New key is the same as old";
|
statusLabel.Text = "New key is the same as old";
|
||||||
statusLabel.Visible = true;
|
statusLabel.Visible = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue