public ProgramContextMenuStrip()
        {
            _isTerminalServicesSession = GetSystemMetrics(SM_REMOTESESSION);
            Icon recordIcon       = ProgramIconUtility.GetIcon(ScheduleType.Recording, false);
            Icon recordSeriesIcon = ProgramIconUtility.GetIcon(ScheduleType.Recording, true);

            _recordItem         = AddItem(this.Items, recordIcon, "Record");
            _recordDailyItem    = AddItem(this.Items, recordSeriesIcon, "Record Daily");
            _recordWeeklyItem   = AddItem(this.Items, recordSeriesIcon, "Record Weekly");
            _recordAnyTimeItem  = AddItem(this.Items, recordSeriesIcon, "Record Any Time");
            _playWithVlcItem    = AddItem(this.Items, "Play Recording With VLC");
            _abortRecordingItem = AddItem(this.Items, Properties.Resources.RecordCancelledIcon, "Abort Recording");

            _separator1           = AddSeparator(this.Items);
            _priorityScheduleItem = AddItem(this.Items, "Priority");
            AddItem(_priorityScheduleItem.DropDownItems, "Very Low", UpcomingProgramPriority.VeryLow);
            AddItem(_priorityScheduleItem.DropDownItems, "Low", UpcomingProgramPriority.Low);
            AddItem(_priorityScheduleItem.DropDownItems, "Normal", UpcomingProgramPriority.Normal);
            AddItem(_priorityScheduleItem.DropDownItems, "High", UpcomingProgramPriority.High);
            AddItem(_priorityScheduleItem.DropDownItems, "Very High", UpcomingProgramPriority.VeryHigh);
            AddItem(_priorityScheduleItem.DropDownItems, "Highest", UpcomingProgramPriority.Highest);
            AddSeparator(_priorityScheduleItem.DropDownItems);
            _resetToSchedulePriorityItem = AddItem(_priorityScheduleItem.DropDownItems, Properties.Resources.Reset, "Reset To Schedule Priority");
            _preRecordScheduleItem       = AddItem(this.Items, "Pre-record");
            _postRecordScheduleItem      = AddItem(this.Items, "Post-record");

            _separator2          = AddSeparator(this.Items);
            _editScheduleItem    = AddItem(this.Items, Properties.Resources.EditProfile, "Edit Schedule");
            _deleteScheduleItem  = AddItem(this.Items, Properties.Resources.RemoveProfile, "Delete Schedule");
            _cancelProgramItem   = AddItem(this.Items, Properties.Resources.RecordSeriesCancelledIcon, "Cancel This Program");
            _uncancelProgramItem = AddItem(this.Items, Properties.Resources.RecordSeriesIcon, "Uncancel This Program");
            _addToPreviouslyRecordedHistoryItem      = AddItem(this.Items, Properties.Resources.RecordSeriesCancelledHistoryIcon, "Add To Previously Recorded History");
            _removeFromPreviouslyRecordedHistoryItem = AddItem(this.Items, Properties.Resources.RecordSeriesIcon, "Remove From Previously Recorded History");
        }
Exemple #2
0
 private void _schedulesDataGridView_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
 {
     foreach (DataGridViewRow row in _schedulesDataGridView.Rows)
     {
         Icon            icon     = Properties.Resources.TransparentIcon;
         ScheduleSummary schedule = row.DataBoundItem as ScheduleSummary;
         if (schedule != null)
         {
             icon = ProgramIconUtility.GetIcon(_scheduleType, !schedule.IsOneTime);
         }
         DataGridViewImageCell cell = (DataGridViewImageCell)row.Cells[1];
         cell.Value       = icon;
         cell.ValueIsIcon = true;
     }
 }