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); } } }
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); }
/// <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(); }
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(); }