public void MarkPlayingIfEqualsTo(GContentClass cont) { if (this.content == cont) { if (this.isPlaying) return; this.isPlaying = true; } else { if (!this.isPlaying) return; this.isPlaying = false; } this.RecreateFont(); }
public static string ConvertToName(GContentClass cont) { string genName = (cont.GrandparentGenre != null) ? cont.GrandparentGenre.GenreName : "???"; StringBuilder sb = new StringBuilder(); sb.Append("[" + genName + "]"); sb.Append(" " + cont.Title); if (!string.IsNullOrEmpty(cont.SeriesNumber) && !cont.SeriesNumber.Equals(cont.Title)) { sb.Append(" / " + cont.SeriesNumber); } if (!string.IsNullOrEmpty(cont.Subtitle) && !cont.Subtitle.Equals(cont.Title) && !cont.Subtitle.Equals(cont.SeriesNumber)) { sb.Append(" / " + cont.Subtitle); } return sb.ToString(); }
public ContentListViewItem(GContentClass content) : base(new string[] { content.ContentId, content.Title, content.SeriesNumber, content.Subtitle, content.DurationValue.ToString(), content.DeadlineValue.ToString() }) { this.content = content; //base.UseItemStyleForSubItems = false; }
public bool TryFindContent(int contKey, out GContentClass content) { GDataSet.GContentRow row = this.dataSet.GContent.FindByContentKey(contKey); if (null != row) { content = new GContentClass(row, this.FindPackage(row), this.GetCachedGenre(row)); return true; } else { content = null; return false; } }
internal static void PlayContent(GContentClass content, Playlist playlist) { if (null == Program.playerForm || Program.playerForm.IsDisposed) { Program.playerForm = new PlayerForm(); } Program.playerForm.Show(); Program.playerForm.Focus(); Program.playerForm.PlayContent(content, playlist); }
public void PlayContent(GContentClass cont, Playlist playlist) { Program.PlaylistsManager.SetCurrentContentAndPlaylist(cont, playlist); this.AttachToPlaylist(playlist); if (null != playlist) { this.playlistsView1.SelectPlaylist(playlist); } this.currentContent = cont; this.currentChapter = this.options.ChapterModeFromBegining ? 1 : (int?)null; if (null == this.currentContent) { this.tsddbPlaylist.Text = "プレイリスト"; } else { this.tsddbPlaylist.Text = this.currentContent.ContentId; } this.tspmddbMode.ClearClipInfo(); this.UpdateTitlebarText(); this.UpdateEnabilityDependingOnContentPlaylistPossesstion(); this.OpenVideo(); }
private void SetLastSelectContentDelayed(GContentClass cont) { this.lastSelectedContent = cont; this.timerContentSelect.Start(); }
public void ViewDetail(GContentClass cont) { if (null == cont) { return; } this.cont = cont; this.pgProperty.SelectedObject = cont; this.reviewTotalCount = 0; this.reviewComparer.ClearComparisons(); this.ChangeEnabilityOfReadMoreControls(false); this.ChangeEnebilityOfVoteControls(false); if (this.LoadImageEnabled) { this.bgImageLoader.ClearTasks(); this.bgImageLoader.AddTaskFirst(new BackgroundImageLoadTask(cont.ImageLargeUri, cont)); } if (this.LoadPageEnabled) { this.bgTextLoader.ClearTasks(); this.bgTextLoader.AddTaskFirst(new BackgroundTextLoadTask(cont.ContentDetailUri, new ContentPageRequestState(cont))); } this.ChangeEnabilityOfContentDrivenControls(); }
public ReviewListPageRequestState(GContentClass content, int startCount) :base(content) { this.startCount = startCount; }
public ContentPageRequestState(GContentClass cont, int? age) :base(cont) { this.age = age; }
public ContentPageRequestState(GContentClass cont): this(cont, null) { }
public PageRequestState(GContentClass cont) { this.content = cont; }