Esempio n. 1
0
 public static void ChangePassword()
 {
     if (TryLogOn())
     {
         FormChangePassword form   = new FormChangePassword();
         DialogResult       result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             OfficeApplicationProxy.changePassword(form.NewPassword);
             userInfo.ChangePassword(form.NewPassword);
         }
     }
 }
Esempio n. 2
0
        private void gantiKataKunciToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (f_ChangePassword != null)
            {
                if (!f_ChangePassword.IsDisposed)
                {
                    f_ChangePassword.Close();
                }
            }

            f_ChangePassword = new FormChangePassword();
            f_ChangePassword.lbl_UserName.Text   = toolStripStatusLabelLoginName.Text;
            f_ChangePassword.userNameLabel1.Text = toolStripStatusLabelLoginName.Text;
            f_ChangePassword.ShowDialog(this);
        }
Esempio n. 3
0
        /// <summary>
        /// Thay đổi mật khẩu đăng nhập
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItemChangePassword_ItemClick(object sender, ItemClickEventArgs e)
        {
            var changePassword = new FormChangePassword();

            changePassword.ShowDialog();
        }
Esempio n. 4
0
 private void mnItemGantiPassword_Click(object sender, EventArgs e)
 {
     Commons.FormChangePassword changePassword = new FormChangePassword(
         AppConfig.Instance.UserID);
     changePassword.ShowDialog(this);
 }
        private void toolStripMenuItemChangePassword_Click(object sender, EventArgs e)
        {
            FormChangePassword formChangePassword = new FormChangePassword();

            formChangePassword.ShowDialog();
        }