예제 #1
0
 private void butApptBook_Click(object sender, EventArgs e)
 {
     if (!ValidateSelection())
     {
         return;
     }
     FormApptBreakSelection = ApptBreakSelection.ApptBook;
     DialogResult           = DialogResult.OK;
 }
예제 #2
0
 private void butPinboard_Click(object sender, EventArgs e)
 {
     if (!ValidateSelection())
     {
         return;
     }
     PromptTextASAPList();
     FormApptBreakSelection = ApptBreakSelection.Pinboard;
     DialogResult           = DialogResult.OK;
 }
예제 #3
0
 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;
 }
예제 #4
0
 private void butCancel_Click(object sender, EventArgs e)
 {
     FormApptBreakSelection = ApptBreakSelection.None;
     DialogResult           = DialogResult.Cancel;
 }