From beb487c997ac72727c885155afc93a99b81c9773 Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Mon, 11 Jan 2016 19:56:14 +0200 Subject: [PATCH] Changed show/hide password icon --- Crypto Notepad/ChangeKeyForm.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Crypto Notepad/ChangeKeyForm.cs b/Crypto Notepad/ChangeKeyForm.cs index 77e66e0..bde6a07 100644 --- a/Crypto Notepad/ChangeKeyForm.cs +++ b/Crypto Notepad/ChangeKeyForm.cs @@ -33,12 +33,14 @@ private void pictureBox1_Click(object sender, EventArgs e) if (textBox1.UseSystemPasswordChar == true) { textBox1.UseSystemPasswordChar = false; + pictureBox1.Image = Properties.Resources.eye_half; return; } if (textBox1.UseSystemPasswordChar == false) { textBox1.UseSystemPasswordChar = true; + pictureBox1.Image = Properties.Resources.eye; return; } } @@ -48,12 +50,14 @@ private void pictureBox2_Click(object sender, EventArgs e) if (textBox2.UseSystemPasswordChar == true) { textBox2.UseSystemPasswordChar = false; + pictureBox2.Image = Properties.Resources.eye_half; return; } if (textBox2.UseSystemPasswordChar == false) { textBox2.UseSystemPasswordChar = true; + pictureBox2.Image = Properties.Resources.eye; return; } }