예제 #1
0
 private void _programContextMenuStrip_DeleteSchedule(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.EditScheduleEventArgs e)
 {
     if (Utility.ContextDeleteSchedule(this, e))
     {
         RefreshSelectedGroupChannels();
     }
 }
예제 #2
0
 private void _programContextMenuStrip_DeleteSchedule(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.EditScheduleEventArgs e)
 {
     if (Utility.ContextDeleteSchedule(this, e))
     {
         _upcomingProgramsControl.RemoveUpcomingProgramsForSchedule(e.ScheduleId);
     }
 }
예제 #3
0
 private void _programContextMenuStrip_DeleteSchedule(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.EditScheduleEventArgs e)
 {
     if (Utility.ContextDeleteSchedule(this, e))
     {
         _controller.RefreshUpcomingPrograms();
         RefreshEpg(false);
     }
 }
예제 #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 bool ContextDeleteSchedule(ContentPanel panel, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.EditScheduleEventArgs e)
 {
     try
     {
         if (DialogResult.Yes == MessageBox.Show(panel, "Are you sure you want to delete this recording's schedule?", "Delete Schedule", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2))
         {
             Proxies.SchedulerService.DeleteSchedule(e.ScheduleId);
             return(true);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(panel, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     return(false);
 }
예제 #6
0
 private void _programContextMenuStrip_EditSchedule(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.EditScheduleEventArgs e)
 {
     Utility.ContextEditSchedule(this, e);
 }