Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
        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);
            }
        }