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