public void SavePasswordChange() { try { var changePasswordDto = Mapper.Map <ChangePasswordDto>(PasswordChangeForm); loginFacade.ChangePassword(CurrentUserId, changePasswordDto); } catch (UIException ex) { ErrorMessage = ex.Message; } SuccessMessage = !IsError ? "Hesle zmenené" : string.Empty; ActiveTabId = 1; PasswordChangeForm.Clear(); }
private void şifreDeğiştirToolStripMenuItem_Click(object sender, EventArgs e) { bool isOpen = false; foreach (Form item in this.MdiChildren) { if (item is PasswordChangeForm) { isOpen = true; } } if (isOpen == true) { pcf.BringToFront(); } else { pcf = new PasswordChangeForm(); pcf.MdiParent = this; pcf.Show(); } }
private void LinkLabelEditPassword_Click(object sender, EventArgs e) { var form = new PasswordChangeForm(); form.ShowDialog(); }