コード例 #1
0
ファイル: FormApptBreak.cs プロジェクト: ChemBrain/OpenDental
 private void butUnsched_Click(object sender, EventArgs e)
 {
     if (!ValidateSelection())
     {
         return;
     }
     if (PrefC.GetBool(PrefName.UnscheduledListNoRecalls) && Appointments.IsRecallAppointment(_appt))
     {
         if (MsgBox.Show(this, MsgBoxButtons.YesNo, "Recall appointments cannot be sent to the Unscheduled List.\r\nDelete appointment instead?"))
         {
             FormApptBreakSelection = ApptBreakSelection.Delete;                  //Set to delete so the parent form can handle the delete.
             DialogResult           = DialogResult.Cancel;
         }
         return;
     }
     PromptTextASAPList();
     FormApptBreakSelection = ApptBreakSelection.Unsched;
     DialogResult           = DialogResult.OK;
 }