Example #1
0
        private void changeButton_Click(object sender, EventArgs e)
        {
            // FUNCTION: Change the password of the admin
            // PRE-CONDITIONS:
            // POST-CONDITIONS:
            adminButtonsDisable();
            EditAdminParticularsPage editAdminParticularsPage = new EditAdminParticularsPage();

            editAdminParticularsPage.ShowDialog();
            if (!editAdminParticularsPage.checkSave)
            {
                return;
            }
            else
            {
                adminManager.SetAdminPassword(editAdminParticularsPage.password);
            }
            toolStripStatusLabel1.Text = "Administrator account password has been changed.";
        }
Example #2
0
 private void changeButton_Click(object sender, EventArgs e)
 {
     // FUNCTION: Change the password of the admin
     // PRE-CONDITIONS:
     // POST-CONDITIONS:
     adminButtonsDisable();
     EditAdminParticularsPage editAdminParticularsPage = new EditAdminParticularsPage();
     editAdminParticularsPage.ShowDialog();
     if (!editAdminParticularsPage.checkSave) return;
     else {
         adminManager.SetAdminPassword(editAdminParticularsPage.password);
     }
     toolStripStatusLabel1.Text = "Administrator account password has been changed.";
 }