private void schedulerControl1_EditAppointmentFormShowing_1(object sender, DevExpress.XtraScheduler.AppointmentFormEventArgs e) { if (schedulerStorage1.Resources.Items.Count > 0) { try { FormNewSpaBooking frmNewSpaBooking = new FormNewSpaBooking(mySpaBooking, false, e.Appointment); e.DialogResult = frmNewSpaBooking.ShowDialog(this); if (e.DialogResult == DialogResult.OK) { Init(true); } } catch (Exception ex) { MessageBox.Show(this, ex.Message); } finally { e.Handled = true; } } else { e.Handled = true; } }
private void sBtnWaitingList_Click(object sender, System.EventArgs e) { FormNewSpaBooking waitingListfrm = new FormNewSpaBooking(mySpaBooking, true); if (schedulerControl1.SelectedInterval != null) { waitingListfrm.DtStartTime = schedulerControl1.SelectedInterval.Start; } DialogResult result = waitingListfrm.ShowDialog(this); if (result == DialogResult.OK) { Init(true); } }
private void schedulerControl1_EditAppointmentFormShowing_1(object sender, DevExpress.XtraScheduler.AppointmentFormEventArgs e) { if (schedulerStorage1.Resources.Items.Count > 0) { try { FormNewSpaBooking frmNewSpaBooking = new FormNewSpaBooking(mySpaBooking, false, e.Appointment); e.DialogResult = frmNewSpaBooking.ShowDialog(this); if (e.DialogResult == DialogResult.OK) { Init(true); } } catch (Exception ex) { MessageBox.Show(this, ex.Message); } finally { e.Handled = true; } } else { e.Handled=true; } }
private void sBtnWaitingList_Click(object sender, System.EventArgs e) { FormNewSpaBooking waitingListfrm = new FormNewSpaBooking(mySpaBooking, true); if (schedulerControl1.SelectedInterval != null) waitingListfrm.DtStartTime = schedulerControl1.SelectedInterval.Start; DialogResult result = waitingListfrm.ShowDialog(this); if (result == DialogResult.OK) { Init(true); } }