Example #1
0
 private void ux_menuitemChangePassword_Click(object sender, EventArgs e)
 {
     ChangePassword cp = new ChangePassword(_sharedUtils.Url, _sharedUtils.Username, "", _sharedUtils);
     cp.StartPosition = FormStartPosition.CenterParent;
     if (DialogResult.OK == cp.ShowDialog(this))
     {
         _sharedUtils = new SharedUtils(_sharedUtils.Url, _sharedUtils.Username, cp.Password, true);
     }
 }
Example #2
0
File: Login.cs Project: egacheru/G2
 private void ux_buttonChangePassword_Click(object sender, EventArgs e)
 {
     ChangePassword cp = new ChangePassword(ux_comboboxServer.SelectedValue.ToString(), ux_textboxUsername.Text, ux_textboxPassword.Text, null);
     cp.StartPosition = FormStartPosition.CenterParent;
     if (DialogResult.OK == cp.ShowDialog(this))
     {
         ux_textboxPassword.Text = "";
     }
 }