Esempio n. 1
0
 private void butRemove_Click(object sender, System.EventArgs e)
 {
     if (MessageBox.Show(Lan.g
                             (this, "Remove this medication from this patient?  Patient notes will be lost.")
                         , "", MessageBoxButtons.OKCancel) != DialogResult.OK)
     {
         return;
     }
     MedicationPats.Delete(MedicationPatCur);
     DialogResult = DialogResult.OK;
 }
Esempio n. 2
0
 private void butRemove_Click(object sender, System.EventArgs e)
 {
     if (IsNew)
     {
         DialogResult = DialogResult.Cancel;
         return;
     }
     if (!MsgBox.Show(this, MsgBoxButtons.OKCancel, "Remove this medication from this patient?  Patient notes will be lost."))
     {
         return;
     }
     MedicationPats.Delete(MedicationPatCur);
     DialogResult = DialogResult.OK;
 }
Esempio n. 3
0
 private void butRemove_Click(object sender, System.EventArgs e)
 {
     if (IsNew)
     {
         DialogResult = DialogResult.Cancel;
         return;
     }
     if (!MsgBox.Show(this, MsgBoxButtons.OKCancel, "Remove this medication from this patient?  Patient notes will be lost."))
     {
         return;
     }
     MedicationPats.Delete(MedicationPatCur);
     if (MedicationPatCur.MedicationNum == 0)
     {
         SecurityLogs.MakeLogEntry(Permissions.PatMedicationListEdit, MedicationPatCur.PatNum, MedicationPatCur.MedDescript + " deleted");
     }
     else
     {
         SecurityLogs.MakeLogEntry(Permissions.PatMedicationListEdit, MedicationPatCur.PatNum, Medications.GetMedication(MedicationPatCur.MedicationNum).MedName + " deleted");
     }
     DialogResult = DialogResult.OK;
 }