private void BtnDoiMatKhau_ItemClick(object sender, ItemClickEventArgs e) { frmDoiMatKhau frmDoiMK = new frmDoiMatKhau(username); frmDoiMK.ThemNhatKyHeThong += ThemNhatKy_Main; frmDoiMK.ShowDialog(); }
private void btnDoiMatKhau_ItemClick(object sender, ItemClickEventArgs e) { frmDoiMatKhau frm = new frmDoiMatKhau(); frm.IDNhanVien = IDNhanVien; frm.ShowDialog(); }
private void btnDoiMatKhau_Above_ItemClick(object sender, ItemClickEventArgs e) { frmDoiMatKhau tcn = new frmDoiMatKhau(); tcn.ShowDialog(); this.Close(); }
private void đổiMậtKhẩuToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); frmDoiMatKhau doimk = new frmDoiMatKhau(); doimk.ShowDialog(); }
private void llblDoiMatKhau_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { frmDoiMatKhau.tenTK = txtTenTaiKhoan.Text; frmDoiMatKhau frm = new frmDoiMatKhau(); frm.ShowDialog(); }
private void btnDoiMatKhau_ItemClick(object sender, ItemClickEventArgs e) { using (frmDoiMatKhau frm = new frmDoiMatKhau()) { //frm._userDAL = ucQLND._userDAL; if (frm.ShowDialog() == DialogResult.OK) { } } }
private void btnDoiMatKhau_ItemClick(object sender, ItemClickEventArgs e) { try { frmDoiMatKhau frmControlActive = new frmDoiMatKhau(GlobalSettings.UserCode); frmControlActive.ShowDialog(); } catch (Exception ex) { O2S_Common.Logging.LogSystem.Warn(ex); } }
private void btnResetPassword_Click(object sender, EventArgs e) { GiaoVu CurrentSelected = bdDanhSachTaiKhoan.Current as GiaoVu; using (frmDoiMatKhau frm = new frmDoiMatKhau(CurrentSelected)) { frm.txtPasswordCu.Text = GenericServices.Decrypts(CurrentSelected.MatKhau); frm.txtPasswordCu.Visible = false; frm.lblPasswordCu.Visible = false; frm.ShowDialog(); } }
private void lblQuenMatKhau_Click(object sender, EventArgs e) { frmDoiMatKhau frmDoiMatKhau = new frmDoiMatKhau(); frmDoiMatKhau.StartPosition = FormStartPosition.CenterParent; var result = frmDoiMatKhau.ShowDialog(); if (result == DialogResult.OK) { this.txtUsername.Text = frmDoiMatKhau.UserName; //values preserved after close this.txtPassword.Text = frmDoiMatKhau.PassWord; } }
private void barButtonItemDoiPass_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form frm = this.CheckExists(typeof(frmDoiMatKhau)); if (frm != null) { frm.Activate(); } else { frmDoiMatKhau f = new frmDoiMatKhau(); f.ShowDialog(); } }
public void DoiMatKhau() { Cont: if (m_FrmDoiMatKhau.ShowDialog() == DialogResult.OK) { if (m_FrmDoiMatKhau.txtMatKhauCu.Text == "") { m_FrmDoiMatKhau.lblMatKhauCu.Text = "Chưa nhập mật khẩu cũ"; m_FrmDoiMatKhau.lblMatKhauMoi.Text = ""; m_FrmDoiMatKhau.lblNhapLaiMatKhauMoi.Text = ""; goto Cont; } if (m_FrmDoiMatKhau.txtMatKhauMoi.Text == "") { m_FrmDoiMatKhau.lblMatKhauMoi.Text = "Chưa nhập mật khẩu mới"; m_FrmDoiMatKhau.lblMatKhauCu.Text = ""; m_FrmDoiMatKhau.lblNhapLaiMatKhauMoi.Text = ""; goto Cont; } if (m_FrmDoiMatKhau.txtNhapLaiMatKhauMoi.Text == "") { m_FrmDoiMatKhau.lblNhapLaiMatKhauMoi.Text = "Chưa nhập lại mật khẩu mới"; m_FrmDoiMatKhau.lblMatKhauMoi.Text = ""; m_FrmDoiMatKhau.lblMatKhauCu.Text = ""; goto Cont; } String m_TenDangNhap = m_FrmDangNhap.txtUserName.Text; String m_MatKhau = m_FrmDangNhap.txtPass.Text; String m_MatKhauCu = m_FrmDoiMatKhau.txtMatKhauCu.Text; String m_MatKhauMoi = m_FrmDoiMatKhau.txtMatKhauMoi.Text; String m_NhapLaiMatKhauMoi = m_FrmDoiMatKhau.txtNhapLaiMatKhauMoi.Text; if (m_MatKhauCu != m_MatKhau) { m_FrmDoiMatKhau.lblMatKhauCu.Text = "Nhập mật khẩu cũ không khớp"; m_FrmDoiMatKhau.lblMatKhauMoi.Text = ""; m_FrmDoiMatKhau.lblNhapLaiMatKhauMoi.Text = ""; goto Cont; } else if (m_MatKhauMoi != m_NhapLaiMatKhauMoi) { m_FrmDoiMatKhau.lblNhapLaiMatKhauMoi.Text = "Nhập lại mật khẩu không khớp"; m_FrmDoiMatKhau.lblMatKhauMoi.Text = ""; m_FrmDoiMatKhau.lblMatKhauCu.Text = ""; goto Cont; } else { m_PhanQuyenCtrl.DoiMatKhau(m_TenDangNhap, m_MatKhauMoi); MessageBoxEx.Show("Đổi mật khẩu thành công!", "PASSWORD CHANGED", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }
private void btnNVDoiMatKhau_Click(object sender, EventArgs e) { frmDoiMatKhau frm = new frmDoiMatKhau(GlobalSettings.UserName); frm.ShowDialog(); }
private void btnDoiMatKhau_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var frm = new frmDoiMatKhau(); frm.ShowDialog(); }
private void menuItemDoiMatKhau_Click(object sender, EventArgs e) { frmDoiMatKhau frm = new frmDoiMatKhau(); frm.ShowDialog(); }
private void đổiMậtKhẩuToolStripMenuItem_Click(object sender, EventArgs e) { frmDoiMatKhau frmDoiMatKhau = new frmDoiMatKhau(taiKhoan); frmDoiMatKhau.ShowDialog(); }
public void DoiMatKhau() { Cont: if (m_FormDoiMatKhau.ShowDialog() == DialogResult.OK) { if (m_FormDoiMatKhau.txtMKcu.Text == "") { m_FormDoiMatKhau.lblMKculoi.Text = "Chưa nhập mật khẩu hiện tại!"; m_FormDoiMatKhau.lblMKmoiloi.Text = ""; m_FormDoiMatKhau.lblxacnhanMKloi.Text = ""; goto Cont; } if (m_FormDoiMatKhau.txtmatkhaumoi.Text == "") { m_FormDoiMatKhau.lblMKculoi.Text = ""; m_FormDoiMatKhau.lblMKmoiloi.Text = "Chưa nhập mật khẩu mới!"; m_FormDoiMatKhau.lblxacnhanMKloi.Text = ""; goto Cont; } if (m_FormDoiMatKhau.txtxacnhan.Text == "") { m_FormDoiMatKhau.lblMKculoi.Text = ""; m_FormDoiMatKhau.lblMKmoiloi.Text = ""; m_FormDoiMatKhau.lblxacnhanMKloi.Text = "Chưa nhập xác nhận mật khẩu!"; goto Cont; } String m_TenDN = m_FormDangNhap.txtdangnhap.Text; String m_MatKhau = m_FormDangNhap.txtmatkhau.Text; String m_MatKhauCu = m_FormDoiMatKhau.txtMKcu.Text; String m_MatKhauMoi = m_FormDoiMatKhau.txtmatkhaumoi.Text; String m_XacNhanMK = m_FormDoiMatKhau.txtxacnhan.Text; if (m_MatKhau != m_MatKhauCu) { m_FormDoiMatKhau.lblMKculoi.Text = "Nhập sai mật khẩu cũ!"; m_FormDoiMatKhau.lblMKmoiloi.Text = ""; m_FormDoiMatKhau.lblxacnhanMKloi.Text = ""; goto Cont; } else if (m_MatKhauMoi != m_XacNhanMK) { m_FormDoiMatKhau.lblMKculoi.Text = ""; m_FormDoiMatKhau.lblMKmoiloi.Text = ""; m_FormDoiMatKhau.lblxacnhanMKloi.Text = "Nhập xác nhận không khớp!"; goto Cont; } else { m_NguoiDungCtrl.DoiMatKhau(m_TenDN, m_MatKhauMoi); MessageBoxEx.Show("Đổi mật khẩu thành công!", "PASSWORD CHANGED", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { return; } }
private void btnDoimatkhau_Click(object sender, EventArgs e) { frmDoiMatKhau fdoimk = new frmDoiMatKhau(frmDangNhap.TenDangNhap); fdoimk.ShowDialog(); }
public void DoiMatKhau() { Cont: if (m_FrmDoiMatKhau.ShowDialog() == DialogResult.OK) { if (m_FrmDoiMatKhau.txtOldPassword.Text == "") { m_FrmDoiMatKhau.lblOldPassError.Text = "Chưa nhập mật khẩu hiện tại!"; m_FrmDoiMatKhau.lblNewPassError.Text = ""; m_FrmDoiMatKhau.lblReNPassError.Text = ""; goto Cont; } if (m_FrmDoiMatKhau.txtNewPassword.Text == "") { m_FrmDoiMatKhau.lblOldPassError.Text = ""; m_FrmDoiMatKhau.lblNewPassError.Text = "Chưa nhập mật khẩu mới!"; m_FrmDoiMatKhau.lblReNPassError.Text = ""; goto Cont; } if (m_FrmDoiMatKhau.txtReNPassword.Text == "") { m_FrmDoiMatKhau.lblOldPassError.Text = ""; m_FrmDoiMatKhau.lblNewPassError.Text = ""; m_FrmDoiMatKhau.lblReNPassError.Text = "Chưa nhập xác nhận mật khẩu!"; goto Cont; } String m_Username = m_FrmLogin.txtUsername.Text; String m_Password = m_FrmLogin.txtPassword.Text; String m_OldPassword = m_FrmDoiMatKhau.txtOldPassword.Text; String m_NewPassword = m_FrmDoiMatKhau.txtNewPassword.Text; String m_ReNPassword = m_FrmDoiMatKhau.txtReNPassword.Text; if (m_Password != m_OldPassword) { m_FrmDoiMatKhau.lblOldPassError.Text = "Nhập sai mật khẩu cũ!"; m_FrmDoiMatKhau.lblNewPassError.Text = ""; m_FrmDoiMatKhau.lblReNPassError.Text = ""; goto Cont; } else if (m_NewPassword != m_ReNPassword) { m_FrmDoiMatKhau.lblOldPassError.Text = ""; m_FrmDoiMatKhau.lblNewPassError.Text = ""; m_FrmDoiMatKhau.lblReNPassError.Text = "Nhập xác nhận không khớp!"; goto Cont; } else { m_NguoiDungCtrl.ChangePassword(m_Username, m_NewPassword); MessageBoxEx.Show("Đổi mật khẩu thành công!", "PASSWORD CHANGED", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { return; } }