private void _programContextMenuStrip_CancelProgram(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.CancelProgramEventArgs e) { if (Utility.ContextCancelProgram(this, e)) { RefreshSelectedGroupChannels(); } }
private void _programContextMenuStrip_CancelProgram(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.CancelProgramEventArgs e) { if (Utility.ContextCancelProgram(this, e)) { RefreshAllUpcomingPrograms(); } }
private void _programContextMenuStrip_CancelProgram(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.CancelProgramEventArgs e) { if (Utility.ContextCancelProgram(this, e)) { if (e.Cancel) { _upcomingProgramsControl.RemoveUpcomingProgram(e.ScheduleId, e.GuideProgramId, e.ChannelId, e.StartTime); } } }
public static bool ContextCancelProgram(ContentPanel panel, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.CancelProgramEventArgs e) { try { if (e.Cancel) { Proxies.SchedulerService.CancelUpcomingProgram(e.ScheduleId, e.GuideProgramId, e.ChannelId, e.StartTime); } else { Proxies.SchedulerService.UncancelUpcomingProgram(e.ScheduleId, e.GuideProgramId, e.ChannelId, e.StartTime); } return(true); } catch (Exception ex) { MessageBox.Show(panel, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error); } return(false); }