Exemple #1
0
 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();
            }
        }
Exemple #3
0
        private void LinkLabelEditPassword_Click(object sender, EventArgs e)
        {
            var form = new PasswordChangeForm();

            form.ShowDialog();
        }