예제 #1
0
        private void buttonScheduleAdd_Click(object sender, EventArgs e)
        {
            SchedulerSettingForm schedulerSettingForm = new SchedulerSettingForm();

            while (schedulerSettingForm.ShowDialog() == DialogResult.OK)
            {
                if (!this.listViewSchedule.Items.ContainsKey(schedulerSettingForm.ScheduleName))
                {
                    RCProcessScheduler schedule = new RCProcessScheduler(schedulerSettingForm.ScheduleName, schedulerSettingForm.ScheduleType, schedulerSettingForm.ScheduleTime, schedulerSettingForm.ExeType, schedulerSettingForm.Command, true);
                    this.AddProcessSchedule(schedule);
                    return;
                }
                Utility.ShowErrorMessage(LocalizeText.Get(451));
            }
        }
예제 #2
0
 private void listViewSchedule_DoubleClick(object sender, EventArgs e)
 {
     if (!this._editable)
     {
         return;
     }
     if (this.listViewSchedule.SelectedItems.Count > 0)
     {
         ListViewItem         listViewItem         = this.listViewSchedule.SelectedItems[0];
         RCProcessScheduler   rcprocessScheduler   = listViewItem.Tag as RCProcessScheduler;
         SchedulerSettingForm schedulerSettingForm = new SchedulerSettingForm(rcprocessScheduler.Name, rcprocessScheduler.ScheduleType, rcprocessScheduler.ScheduleTime, rcprocessScheduler.ExeType, rcprocessScheduler.Command, rcprocessScheduler.Enabled);
         if (schedulerSettingForm.ShowDialog() == DialogResult.OK)
         {
             RCProcessScheduler schedule = new RCProcessScheduler(rcprocessScheduler.Name, schedulerSettingForm.ScheduleType, schedulerSettingForm.ScheduleTime, schedulerSettingForm.ExeType, schedulerSettingForm.Command, schedulerSettingForm.ScheduleEnabled);
             this.ModifyProcessSchedule(schedule);
         }
     }
 }