Exemple #1
0
 private void BtnDelete_Click(object sender, EventArgs e)
 {
     if (ID != 0)
     {
         clsModule.DeleteMp(ID);
         if (clsModule.Status > 0)
         {
             MessageBox.Show("MP Deleted", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
             clear();
         }
         else
         {
             MessageBox.Show("There is no mp with this ID", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }