Exemplo n.º 1
0
 public override void addBtn_Click(object sender, EventArgs e)
 {
     MainClass.enable_reset(panel6);
     imagePathTxt.Enabled = false;
     edit = 0;
     loadList();
 }
 public override void ViewBtn_Click(object sender, EventArgs e)
 {
     btnStatus      = "view";
     operation.Text = "View";
     loadStudents();
     MainClass.disable_reset(panel5);
     MainClass.enable_reset(advanceSearchPanel);
 }
 public override void adSearch_Click(object sender, EventArgs e)
 {
     MainClass.enable_reset(advanceSearchPanel);
     advSearchPicBox.Image = Properties.Resources.user1;
     if (advanceSearchPanel.Visible == true)
     {
         advanceSearchPanel.Visible = false;
     }
     else
     {
         advanceSearchPanel.Visible = true;
     }
 }
 public override void btnAdd_Click(object sender, EventArgs e)
 {
     if (btnStatus == "add")
     {
         btnStatus    = "view";
         lblMain.Text = "View";
         MainClass.disable(panel6);
     }
     else
     {
         btnStatus    = "add";
         lblMain.Text = "Add Reservation";
         MainClass.enable_reset(panel6);
     }
 }
 public override void addBtn_Click(object sender, EventArgs e)
 {
     if (btnStatus == "add")
     {
         btnStatus      = "view";
         operation.Text = "View Student";
         MainClass.disable(panel5);
     }
     else
     {
         btnStatus = "add";
         MainClass.enable_reset(panel5);
         operation.Text    = "Add Student";
         acceptBtn.Visible = true;
     }
 }
Exemplo n.º 6
0
        public override void addBtn_Click(object sender, EventArgs e)
        {
            if (passwordChangePanel.Visible == true)
            {
                passwordChangePanel.Visible = false;
            }

            MainClass.enable_reset(panel5);
            if (addUserPanel.Visible == false)
            {
                addUserPanel.Visible = true;
            }
            else
            {
                addUserPanel.Visible = false;
            }
        }
Exemplo n.º 7
0
 private void changePasswordBtn_Click(object sender, EventArgs e)
 {
     if (changeUserPassword())
     {
         if (userID == 1)
         {
             MainClass.showMsg("Password Changed Successfully, Logging out for changes!", "Success", "success");
             MainClass.appStatus = "";
             MainClass.immediateLogoutOn();
             MainClass.closeMDI();
         }
         else
         {
             MainClass.showMsg("Password Changed Successfully!", "Success", "success");
             MainClass.enable_reset(passwordChangePanel);
         }
     }
     else
     {
         MainClass.showMsg("Current Password doesn't match!", "Error", "Error");
     }
 }
Exemplo n.º 8
0
 public override void addBtn_Click(object sender, EventArgs e)
 {
     edit = 0;
     MainClass.enable_reset(panel6);
 }
Exemplo n.º 9
0
 public override void addBtn_Click(object sender, EventArgs e)
 {
     btnStatus = "add";
     MainClass.enable_reset(panel5);
     operation.Text = "Add Role";
 }