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