Exemple #1
0
        private void cb_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox cb = (ComboBox)sender;

            Appointment a = (Appointment)cb.Tag;

            a.CloudWebQueueState = cb.Text;

            if (a.CloudWebQueueState == SYNCH_APPT)
            {
                WebApptSynchToSchedule wsts = new WebApptSynchToSchedule();
                wsts.Setup(appts);
                wsts.ShowDialog();
                a.CloudWebQueueSynchId = wsts.SelectedApptID;
            }
            else if (a.CloudWebQueueState == DELETE_APPT)
            {
                if (MessageBox.Show("Are you sure you want to mark this survey to be deleted?", "Delete Survey", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                }
                else
                {
                    cb.Text = "";
                };
            }

            fastDataListView1.Focus();
        }
Exemple #2
0
        private void cb_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox cb = (ComboBox)sender;

            Appointment a = (Appointment)cb.Tag;
            a.CloudWebQueueState = cb.Text;

            if (a.CloudWebQueueState == SYNCH_APPT)
            {
                WebApptSynchToSchedule wsts = new WebApptSynchToSchedule();
                wsts.Setup(appts);
                wsts.ShowDialog();
                a.CloudWebQueueSynchId = wsts.SelectedApptID;
            }
            else if (a.CloudWebQueueState == DELETE_APPT)
            {
                if (MessageBox.Show("Are you sure you want to mark this survey to be deleted?", "Delete Survey", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {

                }
                else
                {
                    cb.Text = "";
                };
            }

            fastDataListView1.Focus();
        }