コード例 #1
0
        //http://documentation.devexpress.com/#WindowsForms/CustomDocument2288
        private void schedulerControl1_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
        {
            DevExpress.XtraScheduler.Appointment apt = e.Appointment;
            bool openRecurrenceForm = apt.IsRecurring && schedulerStorage1.Appointments.IsNewAppointment(apt);

            // Create a custom form.
            MyAppointmentForm myForm = new MyAppointmentForm((SchedulerControl)sender, apt, openRecurrenceForm);

            myForm.LookAndFeel.ParentLookAndFeel = schedulerControl1.LookAndFeel;
            e.DialogResult = myForm.ShowDialog();
            schedulerControl1.Refresh();
            e.Handled = true;
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: spzenk/sfdocsamples
        //http://documentation.devexpress.com/#WindowsForms/CustomDocument2288
        private void schedulerControl1_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e)
        {
            DevExpress.XtraScheduler.Appointment apt = e.Appointment;
            bool openRecurrenceForm = apt.IsRecurring &&    schedulerStorage1.Appointments.IsNewAppointment(apt);

            // Create a custom form.
            MyAppointmentForm myForm = new MyAppointmentForm((SchedulerControl)sender,     apt, openRecurrenceForm);
            myForm.LookAndFeel.ParentLookAndFeel = schedulerControl1.LookAndFeel;
            e.DialogResult = myForm.ShowDialog();
            schedulerControl1.Refresh();
            e.Handled = true;
        }