Exemple #1
0
 //Delete Button
 public override void delete_Btn_Click(object sender, EventArgs e)
 {
     try
     {
         if (UserID_textBox.Text == "")
         {
             MainClass.MSGBox("Enter User ID", "Error", "Error");
         }
         else
         {
             UsersDB usersDB = new UsersDB();
             usersDB.Delete(UserID_textBox, username_textBox, userpswd_textBox);
             MainClass.Disable(panel4);
             ShowData();
         }
     }
     catch
     {
         MainClass.MSGBox("Oopss... User Not Deleted!!", "Error", "Error");
     }
     Disable_errorlabel();
 }
Exemple #2
0
 public override void delete_Btn_Click(object sender, EventArgs e)
 {
     try
     {
         if (Num_textBox.Text == "")
         {
             MainClass.MSGBox("Enter Fee Id", "Error", "Error");
         }
         else
         {
             FeeDB feeDB = new FeeDB();
             feeDB.Delete(Num_textBox, StdID_DD, name_textBox, Period_picker, amount_textBox);
             MainClass.Disable(panel4);
             ShowData();
         }
     }
     catch
     {
         MainClass.MSGBox("Oopss... Student Not Deleted!!", "Error", "Error");
     }
     Disable_errorlabel();
 }
Exemple #3
0
 public override void delete_Btn_Click(object sender, EventArgs e)
 {
     try
     {
         if (TID_textBox.Text == "")
         {
             MainClass.MSGBox("Enter Teacher Id", "Error", "Error");
         }
         else
         {
             TeacherDB teacherDB = new TeacherDB();
             teacherDB.Delete(TID_textBox, name_textBox, GenderDD, Phone_textBox, ClassDD, Address_textBox);
             MainClass.Disable(panel4);
             ShowData();
         }
     }
     catch
     {
         MainClass.MSGBox("Oopss... Teacher Not Deleted!!", "Error", "Error");
     }
     Disable_errorlabel();
 }
Exemple #4
0
 public override void delete_Btn_Click(object sender, EventArgs e)
 {
     try
     {
         if (SID_textBox.Text == "")
         {
             MainClass.MSGBox("Enter Student Id", "Error", "Error");
         }
         else
         {
             StudentDB studentDB = new StudentDB();
             studentDB.Delete(SID_textBox, name_textBox, GenderDD, DOB_Picker, Phone_textBox, ClassDD);
             MainClass.Disable(panel4);
             ShowData();
         }
     }
     catch
     {
         MainClass.MSGBox("Oopss... Student Not Deleted!!", "Error", "Error");
     }
     Disable_errorlabel();
 }
Exemple #5
0
 //Delete Button
 public override void delete_Btn_Click(object sender, EventArgs e)
 {
     try
     {
         if (classesname_textBox.Text == "")
         {
             MainClass.MSGBox("Enter Class Name", "Error", "Error");
         }
         else
         {
             ClassDB classDB = new ClassDB();
             classDB.delete(classesname_textBox);
             MainClass.Disable(panel4);
             ShowData();
         }
     }
     catch
     {
         MainClass.MSGBox("Oopss... Class Not Deleted!!", "Error", "Error");
     }
     Disable_errorlabel();
 }