예제 #1
0
 private void _programContextMenuStrip_CancelProgram(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.CancelProgramEventArgs e)
 {
     if (Utility.ContextCancelProgram(this, e))
     {
         RefreshSelectedGroupChannels();
     }
 }
예제 #2
0
 private void _programContextMenuStrip_CancelProgram(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.CancelProgramEventArgs e)
 {
     if (Utility.ContextCancelProgram(this, e))
     {
         RefreshAllUpcomingPrograms();
     }
 }
예제 #3
0
 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);
         }
     }
 }
예제 #4
0
 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);
 }