From e43afdb85ce30fcc3fd343451b9e528e094f1452 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 15 Oct 2019 20:05:38 +0300 Subject: [PATCH] Status message now empty, not invisible --- Crypto Notepad/ChangeKeyForm.Designer.cs | 3 +-- Crypto Notepad/ChangeKeyForm.cs | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Crypto Notepad/ChangeKeyForm.Designer.cs b/Crypto Notepad/ChangeKeyForm.Designer.cs index 2519b54..b023ecb 100644 --- a/Crypto Notepad/ChangeKeyForm.Designer.cs +++ b/Crypto Notepad/ChangeKeyForm.Designer.cs @@ -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 // diff --git a/Crypto Notepad/ChangeKeyForm.cs b/Crypto Notepad/ChangeKeyForm.cs index 280e0e4..4b8f47c 100644 --- a/Crypto Notepad/ChangeKeyForm.cs +++ b/Crypto Notepad/ChangeKeyForm.cs @@ -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);