Exemplo n.º 1
0
        private bool VerifyPassword()
        {
            if (string.IsNullOrEmpty(GlobalConfig.MasterPassword))
            {
                SetupPasswordForm passForm = new SetupPasswordForm();
                passForm.ShowDialog();

                return(passForm.isPasswordMatched);
            }
            else
            {
                VerifyPasswordForm verifyForm = new VerifyPasswordForm();
                verifyForm.ShowDialog();

                return(verifyForm.isPasswordMatched);
            }
        }
Exemplo n.º 2
0
        private void button_ChangePassword_Click(object sender, EventArgs e)
        {
            SetupPasswordForm setupForm = new SetupPasswordForm();

            setupForm.ShowDialog();
        }