예제 #1
0
        private void OpenEditSchedulePanel(Schedule schedule)
        {
            EditSchedulePanel editPanel = new EditSchedulePanel();

            editPanel.Schedule = schedule;
            editPanel.OpenPanel(this);
        }
예제 #2
0
 private void _createNewButton_Click(object sender, EventArgs e)
 {
     try
     {
         EditSchedulePanel editPanel = new EditSchedulePanel();
         editPanel.Schedule = Proxies.SchedulerService.CreateNewSchedule(this.ChannelType, _scheduleType).Result;
         editPanel.OpenPanel(this);
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #3
0
        private void EditSelectedSchedule()
        {
            ScheduleSummary schedule = GetSelectedSchedule();

            if (schedule != null)
            {
                try
                {
                    EditSchedulePanel editPanel = new EditSchedulePanel();
                    editPanel.Schedule = Proxies.SchedulerService.GetScheduleById(schedule.ScheduleId).Result;
                    editPanel.OpenPanel(this);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(this, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
예제 #4
0
 public static void ContextEditSchedule(ContentPanel panel, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.EditScheduleEventArgs e)
 {
     try
     {
         EditSchedulePanel editPanel = new EditSchedulePanel();
         editPanel.Schedule = Proxies.SchedulerService.GetScheduleById(e.ScheduleId).Result;
         editPanel.OpenPanel(panel);
     }
     catch (Exception ex)
     {
         MessageBox.Show(panel, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #5
0
 public static void ContextCreateNewSchedule(ContentPanel panel, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.CreateNewScheduleEventArgs e)
 {
     EditSchedulePanel editPanel = new EditSchedulePanel();
     editPanel.Schedule = e.Schedule;
     editPanel.OpenPanel(panel);
 }
예제 #6
0
 private void OpenEditSchedulePanel(Schedule schedule)
 {
     EditSchedulePanel editPanel = new EditSchedulePanel();
     editPanel.Schedule = schedule;
     editPanel.OpenPanel(this);
 }
예제 #7
0
 private void EditSelectedSchedule()
 {
     ScheduleSummary schedule = GetSelectedSchedule();
     if (schedule != null)
     {
         try
         {
             EditSchedulePanel editPanel = new EditSchedulePanel();
             editPanel.Schedule = Proxies.SchedulerService.GetScheduleById(schedule.ScheduleId).Result;
             editPanel.OpenPanel(this);
         }
         catch (Exception ex)
         {
             MessageBox.Show(this, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }
예제 #8
0
 private void _createManualScheduleButton_Click(object sender, EventArgs e)
 {
     try
     {
         EditSchedulePanel editPanel = new EditSchedulePanel();
         editPanel.ForceManualSchedule = true;
         editPanel.Schedule = Proxies.SchedulerService.CreateNewSchedule(this.ChannelType, _scheduleType).Result;
         editPanel.OpenPanel(this);
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }