Ejemplo n.º 1
0
        //=============================================================
        //    Public methods
        //=============================================================
        public override void Update(AbstractVideo video)
        {
            Label_Title.Text = video.Title;
            Label_Year.Text = video.Year == 0 ? "" : video.Year.ToString();
            Label_Genres.Text = Utils.ConcatWithSeparator(video.Genres, Properties.Resources.STR_GENRES_SEPARATOR);

            base.Update(video);
        }
Ejemplo n.º 2
0
 //=============================================================
 //    Public methods
 //=============================================================
 public virtual void Update(AbstractVideo video)
 {
     Video = video;
     switch (video.Type)
     {
         case VideoType.Movie: Update(video as Movie);
             break;
         case VideoType.Series: Update(video as Series);
             break;
     }
     Update();
 }
Ejemplo n.º 3
0
        //=============================================================
        //    Public methods
        //=============================================================
        /// <summary>
        /// Updates control with given video.
        /// </summary>
        /// <param name="video"></param>
        public override void Update(AbstractVideo video)
        {
            Label_Title.Text = video.Title;

            base.Update(video);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructs event args with AbstractVideo object.
 /// </summary>
 /// <param name="video"></param>
 public VideoFoundEventArgs(AbstractVideo video)
 {
     Video = video;
 }
Ejemplo n.º 5
0
 private void OnNewVideo(AbstractVideo video)
 {
     OnVideoFound(new VideoFoundEventArgs(video));
     OnSearchProgressChanged(new SearchProgressEventArgs(_progress.CurrentItemsCount, _progress.TotalItemsCount));
 }
Ejemplo n.º 6
0
		//-------------------------------------------------------------
		//	Private methods
		//-------------------------------------------------------------

		private void AddAbstractVideoToResultsListView(AbstractVideo video)
		{
			var item = new ListViewItem(new[] { video.Type.ToString(), video.Title, video.Year.ToString() }) { Tag = video };
			ListView_SearchResults.Items.Add(item);
			ListView_SearchResults.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
		}