Example #1
0
 private void deleteWaitList()
 {
     if (blWaitList == true)
     {
         clsDatabase objDB  = new clsDatabase(strDB);
         string      SQL    = deleteWaitListSQL();
         bool        blPass = objDB.ExecuteNonQuery(SQL);
         if (blPass == true)
         {
             MessageBox.Show(txtPatient.Text + " has been deleted from the wait list.");
         }
         else
         {
             MessageBox.Show("Error - was not able to delete the user to the wait list. If the problem persists please contact IT.");
         }
     }
     else
     {
         blWaitList = true;
     }
 }
Example #2
0
 private void deleteTP()
 {
     if (TP_ID != 0)
     {
         clsDatabase objDB  = new clsDatabase(strDB);
         string      SQL    = deleteTPSQL();
         bool        blPass = objDB.ExecuteNonQuery(SQL);
         if (blPass == true)
         {
             MessageBox.Show(txtPatient.Text + " has removed his treatment plan.");
             clearTPPanel();
         }
         else
         {
             MessageBox.Show("Error - was not able to delete the user to the treatment plan. If the problem persists please contact IT.");
         }
     }
     else
     {
         blTP = true;
     }
 }