Exemple #1
0
 public static bool ContextAddRemoveProgramHistory(ContentPanel panel, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.AddRemoveProgramHistoryEventArgs e)
 {
     try
     {
         if (e.AddToHistory)
         {
             if (DialogResult.Yes == MessageBox.Show(panel, "Are you sure you want to add this recording to its schedule's" + Environment.NewLine + "history of previously recorded programs?", "Add To History", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2))
             {
                 Proxies.ControlService.AddToPreviouslyRecordedHistory(e.UpcomingProgram);
                 return(true);
             }
         }
         else
         {
             if (DialogResult.Yes == MessageBox.Show(panel, "Are you sure you want to remove this recording from its schedule's" + Environment.NewLine + "history of previously recorded programs?", "Add To History", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2))
             {
                 Proxies.ControlService.RemoveFromPreviouslyRecordedHistory(e.UpcomingProgram);
                 return(true);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(panel, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     return(false);
 }
Exemple #2
0
 private void _programContextMenuStrip_AddRemoveProgramHistory(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.AddRemoveProgramHistoryEventArgs e)
 {
     if (Utility.ContextAddRemoveProgramHistory(this, e))
     {
         RefreshSelectedGroupChannels();
     }
 }
 private void _programContextMenuStrip_AddRemoveProgramHistory(object sender, ArgusTV.WinForms.Controls.ProgramContextMenuStrip.AddRemoveProgramHistoryEventArgs e)
 {
     if (Utility.ContextAddRemoveProgramHistory(this, e))
     {
         RefreshAllUpcomingPrograms();
     }
 }