Beispiel #1
0
 private void scheduleDayView_ItemDoubleClick(object sender, ScheduleItemArgs e)
 {
     using (ScheduleItemEditForm scheduleItemEditForm = new ScheduleItemEditForm(e.Item as ScheduleItem)) {
         if (scheduleItemEditForm.ShowDialog() == DialogResult.OK) {
             // Force a redraw of the item.
             _RefreshView();
         }
     }
 }
Beispiel #2
0
 private void scheduleDayView_ItemDoubleClick(object sender, ScheduleItemArgs e)
 {
     using (ScheduleItemEditForm scheduleItemEditForm = new ScheduleItemEditForm(e.Item as ScheduleItem)) {
         if (scheduleItemEditForm.ShowDialog() == DialogResult.OK)
         {
             // Force a redraw of the item.
             _RefreshView();
         }
     }
 }
Beispiel #3
0
        private void scheduleDayView_TimeDoubleClick(object sender, ScheduleEventArgs e)
        {
            ScheduleItem item = new ScheduleItem {
                RunStartTime       = e.TimeOffset,
                RepeatsWithinBlock = false,
                RepeatsOnInterval  = false
            };

            using (ScheduleItemEditForm scheduleItemEditForm = new ScheduleItemEditForm(item)) {
                if (scheduleItemEditForm.ShowDialog() == DialogResult.OK)
                {
                    _data.Items.Add(item);
                    _RefreshView();
                }
            }
        }
Beispiel #4
0
 private void scheduleDayView_TimeDoubleClick(object sender, ScheduleEventArgs e)
 {
     ScheduleItem item = new ScheduleItem
                             {
                                 RunStartTime = e.TimeOffset,
                                 RepeatsWithinBlock = false,
                                 RepeatsOnInterval = false
                             };
     using (ScheduleItemEditForm scheduleItemEditForm = new ScheduleItemEditForm(item)) {
         if (scheduleItemEditForm.ShowDialog() == DialogResult.OK) {
             _data.Items.Add(item);
             _RefreshView();
         }
     }
 }