예제 #1
0
        private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var savePass = !string.IsNullOrEmpty(Settings.Default.EncryptedStoragePassword);
            var pwdDlg = new ChangePasswordDialog(savePass);
            var res = pwdDlg.ShowDialog(this);
            if (res == DialogResult.Cancel)
                return;

            _savePasswordRequested = true;
            _hostsManager.Password = pwdDlg.Password;
            savePass = pwdDlg.SavePassword;
            _saveNewPassword = savePass;
            Modified = true;
        }