public Schedule CreateRecordRepeatingSchedule(RepeatingType repeatingType, Guid?channelId, Guid guideProgramId) { GuideProgram guideProgram = Proxies.GuideService.GetProgramById(guideProgramId).Result; if (guideProgram != null) { return(GuideController.CreateRecordRepeatingSchedule(repeatingType, _model.ChannelType, channelId, guideProgram.Title, guideProgram.StartTime, string.Empty)); } return(null); }
public Schedule CreateRecordOnceSchedule(Guid channelId, Guid guideProgramId) { GuideProgram guideProgram = Proxies.GuideService.GetProgramById(guideProgramId).Result; if (guideProgram != null) { return(GuideController.CreateRecordOnceSchedule(_model.ChannelType, channelId, guideProgram.Title, guideProgram.SubTitle, guideProgram.EpisodeNumberDisplay, guideProgram.StartTime)); } return(null); }
public Schedule CreateRecordRepeatingSchedule(ISchedulerService tvSchedulerAgent, IGuideService tvGuideAgent, RepeatingType repeatingType, Guid?channelId, Guid guideProgramId) { GuideProgram guideProgram = tvGuideAgent.GetProgramById(guideProgramId); if (guideProgram != null) { return(GuideController.CreateRecordRepeatingSchedule(tvSchedulerAgent, repeatingType, _model.ChannelType, channelId, guideProgram.Title, guideProgram.StartTime, string.Empty)); } return(null); }
public Schedule CreateRecordOnceSchedule(ISchedulerService tvSchedulerAgent, IGuideService tvGuideAgent, Guid channelId, Guid guideProgramId) { GuideProgram guideProgram = tvGuideAgent.GetProgramById(guideProgramId); if (guideProgram != null) { return(GuideController.CreateRecordOnceSchedule(tvSchedulerAgent, _model.ChannelType, channelId, guideProgram.Title, guideProgram.SubTitle, guideProgram.EpisodeNumberDisplay, guideProgram.StartTime)); } return(null); }
private void GuidePanel_Load(object sender, EventArgs e) { try { _inLoad = true; Cursor.Current = Cursors.WaitCursor; _model = new GuideModel(); _controller = new GuideController(_model); ChannelType channelType = ChannelType.Television; if (MainForm.Session.ContainsKey(SessionKey.ChannelType)) { channelType = (ChannelType)MainForm.Session[SessionKey.ChannelType]; } _controller.Initialize(channelType, 24, ArgusTV.WinForms.Controls.EpgControl.EpgHoursOffset, "All Channels"); _channelTypeComboBox.SelectedIndex = (int)_model.ChannelType; _groupsBindingSource.DataSource = _model.ChannelGroups; _channelGroupsComboBox.DisplayMember = "GroupName"; _channelGroupsComboBox.ValueMember = "ChannelGroupId"; if (MainForm.Session.ContainsKey(SessionKey.ChannelGroupId)) { _channelGroupsComboBox.SelectedValue = (Guid)MainForm.Session[SessionKey.ChannelGroupId]; } DateTime guideDate = GetCurrentGuideDate(); if (MainForm.Session.ContainsKey(SessionKey.GuideDate)) { guideDate = (DateTime)MainForm.Session[SessionKey.GuideDate]; } _gotoNowTime = true; _guideDatePicker.Value = guideDate; RefreshEpg(true); } catch (Exception ex) { MessageBox.Show(this, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { Cursor.Current = Cursors.Default; _inLoad = false; } }
protected override void OnPageLoad() { if (PluginMain.EnsureConnection() && _model == null) { _model = new GuideModel(); _controller = new GuideController(_model); _controller.Initialize(_channelType, 3, Utility.GetLocalizedText(TextId.AllChannels)); } if (PluginMain.Navigator.CurrentGroup != null && PluginMain.Navigator.CurrentGroup.ChannelType == _channelType) { _controller.SetChannelGroup(PluginMain.Navigator.CurrentGroup.ChannelGroupId); } base.OnPageLoad(); }