示例#1
0
 private void ChangePasswordButton_Click(object sender, EventArgs e)
 {
     if (accountList.SelectedItems.Count > 0)
     {
         var uuid           = Convert.ToInt32(accountList.SelectedItems[0].Text);
         var passwordChange = new OversightPasswordChange(uuid);
         passwordChange.Show();
     }
     else
     {
         accountManagementStatusStrip.Text = "Please select a user to change their password";
     }
 }
示例#2
0
 private void changePasswordButton_Click(object sender, EventArgs e)
 {
     if (accountList.SelectedItems.Count > 0)
     {
         int      UUID = Convert.ToInt32(accountList.SelectedItems[0].Text);
         UserData user = accountManagement.FindUser(UUID);
         OversightPasswordChange passwordChange = new OversightPasswordChange(UUID);
         passwordChange.Show();
     }
     else
     {
         accountManagementStatusStrip.Text = "Please select a user to change their password";
     }
 }