Ejemplo n.º 1
0
 private void buttonDelete_Click(object sender, EventArgs e)
 {
     if (IsNew)
     {
         DialogResult = DialogResult.Cancel;
         return;
     }
     try{
         DiseaseDefs.Delete(DiseaseDefCur);
         DialogResult = DialogResult.OK;
     }
     catch (ApplicationException ex) {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 2
0
 private void buttonDelete_Click(object sender, EventArgs e)
 {
     if (IsNew)
     {
         DialogResult = DialogResult.Cancel;
         return;
     }
     try{
         DiseaseDefs.Delete(DiseaseDefCur);
         SecurityLogs.MakeLogEntry(Permissions.ProblemEdit, 0, DiseaseDefCur.DiseaseName + " deleted.");
         DialogResult = DialogResult.OK;
     }
     catch (ApplicationException ex) {
         MessageBox.Show(ex.Message);
     }
 }