private void OpenEditSchedulePanel(Schedule schedule) { EditSchedulePanel editPanel = new EditSchedulePanel(); editPanel.Schedule = schedule; editPanel.OpenPanel(this); }
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); } }
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); } } }
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); } }
public static void ContextCreateNewSchedule(ContentPanel panel, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.CreateNewScheduleEventArgs e) { EditSchedulePanel editPanel = new EditSchedulePanel(); editPanel.Schedule = e.Schedule; editPanel.OpenPanel(panel); }
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); } }