Status message now empty, not invisible

This commit is contained in:
Alexander 2019-10-15 20:05:38 +03:00
parent 620aae8459
commit e43afdb85c
2 changed files with 1 additions and 4 deletions

View file

@ -1,4 +1,4 @@
namespace Crypto_Notepad
namespace Crypto_Notepad
{
partial class ChangeKeyForm
{
@ -126,7 +126,6 @@ private void InitializeComponent()
this.statusLabel.Size = new System.Drawing.Size(42, 17);
this.statusLabel.TabIndex = 7;
this.statusLabel.Text = "status";
this.statusLabel.Visible = false;
//
// lockPictureBox
//

View file

@ -34,7 +34,6 @@ private async void AcceptButton_Click(object sender, EventArgs e)
SystemSounds.Hand.Play();
statusLabel.ForeColor = Color.Red;
statusLabel.Text = "Invalid old key";
statusLabel.Visible = true;
oldKeyTextBox.Text = "";
newKeyTextBox.Text = "";
await Task.Delay(2000);
@ -45,7 +44,6 @@ private async void AcceptButton_Click(object sender, EventArgs e)
SystemSounds.Hand.Play();
statusLabel.ForeColor = Color.Red;
statusLabel.Text = "New key is the same as old";
statusLabel.Visible = true;
oldKeyTextBox.Text = "";
newKeyTextBox.Text = "";
await Task.Delay(2000);