private void WalletPasswordBox_Shown(object sender, EventArgs e)
        {
            FPasswordMatch         = false;
            unlockPictureBox.Image = Properties.Resources.unlocked;

            passwordBox.Focus();
            passwordBox.Clear();
            passwordBoxCheck.Clear();
            WarningLabel.Hide();

            if (!FIsNewPassword)
            {
                firstLabel.Text = "Insert password used to decrypt wallet";
                passwordBoxCheck.Hide();
                secondLabel.Hide();
                lockPictureBock.Image = Properties.Resources.locked;
                unlockPictureBox.Hide();
                lockPictureBock.Show();
                WarningLabel.Show();
                WarningLabel.Text = "- LOCKED -";
            }
            else
            {
                firstLabel.Text = "Insert new password used to decrypt wallet";
                passwordBox.Show();
                passwordBoxCheck.Show();
                secondLabel.Show();
                lockPictureBock.Hide();
                unlockPictureBox.Show();
            }

            FPasswordMatch = false;
            btnOK.Enabled  = true;
        }
Esempio n. 2
0
 private void SecureSettingsHide()
 {
     ChangePassLabel.Hide();
     OldPasswordTextBox.Hide();
     NewPasswordTextBox.Hide();
     ConfirmPasswordTextBox.Hide();
     ChangeButton.Hide();
     materialDivider1.Hide();
     CreateKeyLabel.Hide();
     SecureKeyDescLabel.Hide();
     CreateKeyButton.Hide();
     WarningLabel.Hide();
 }