mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Changed show/hide password icon
This commit is contained in:
parent
b770d31810
commit
beb487c997
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue