/// <summary>
        /// Creates the ComicsScreen
        /// </summary>
        public YahooTrailersDetailsScreen()
        {
            System.Reflection.Assembly a  = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.FileInfo         fi = new System.IO.FileInfo(a.Location);

            homedir = fi.DirectoryName;

            // Text Objects
            _header = new TextWindow();
            Add(_header);

            _poster = new PosterWindow();
            Add(_poster);

            _details = new TextWindow();
            Add(_details);

            _starring = new TextWindow();
            Add(_starring);

            _genre = new TextWindow();
            Add(_genre);

            _releasedate = new TextWindow();
            Add(_releasedate);

            _rating = new TextWindow();
            Add(_rating);

            _trailers = new VariableItemList();
            Add(_trailers);
            _trailers.ItemActivated += new ItemActivatedEventHandler(List_ItemActivated);
            _trailers.Visible        = true;
            _trailers.Focus();

            // Logo
            _yahoologo = new Window();
            Add(_yahoologo);

            // Downloading logo
            _downloading = new Window();
            Add(_downloading);

            // Create the timer
            updateTimer          = new System.Windows.Forms.Timer();
            updateTimer.Interval = 250;
            updateTimer.Tick    += new EventHandler(updateTimer_Tick);
            updateTimer.Start();
        }
        /// <summary>
        /// Creates the ComicsScreen
        /// </summary>
        public YahooTrailersDetailsScreen()
        {
            System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.FileInfo fi = new System.IO.FileInfo( a.Location );

            homedir = fi.DirectoryName;

            // Text Objects
            _header = new TextWindow();
            Add( _header );

            _poster = new PosterWindow();
            Add( _poster );

            _details = new TextWindow();
            Add( _details );

            _starring = new TextWindow();
            Add( _starring );

            _genre = new TextWindow();
            Add( _genre );

            _releasedate = new TextWindow();
            Add( _releasedate );

            _rating = new TextWindow();
            Add( _rating );

            _trailers = new VariableItemList();
            Add( _trailers );
            _trailers.ItemActivated += new ItemActivatedEventHandler(List_ItemActivated);
            _trailers.Visible = true;
            _trailers.Focus();

            // Logo
            _yahoologo = new Window();
            Add( _yahoologo );

            // Downloading logo
            _downloading = new Window();
            Add( _downloading );

            // Create the timer
            updateTimer = new System.Windows.Forms.Timer();
            updateTimer.Interval = 250;
            updateTimer.Tick += new EventHandler(updateTimer_Tick);
            updateTimer.Start();
        }
Beispiel #3
0
        public void addPoster(string title)
        {
            //SnapStream.Logging.WriteLog("Add Poster: " + title);
            System.Reflection.Assembly a  = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.FileInfo         fi = new System.IO.FileInfo(a.Location);

            _poster = new PosterWindow();
            _poster.RelativeBounds = new Rectangle(23, 10, 35, 50);
            string jpgpath = fi.DirectoryName + "\\Posters\\" + title.Replace(":", "").Replace("?", "") + ".jpg";

            ((PosterWindow)_poster).LoadTexture(jpgpath);
            Add(_poster);

            return;
        }
        public void addPoster( string title )
        {
            //SnapStream.Logging.WriteLog("Add Poster: " + title);
            System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
            System.IO.FileInfo fi = new System.IO.FileInfo( a.Location );

            _poster = new PosterWindow();
            _poster.RelativeBounds = new Rectangle(23,10,35,50);
            string jpgpath = fi.DirectoryName + "\\Posters\\" + title.Replace(":","").Replace("?","") + ".jpg";
            ((PosterWindow)_poster).LoadTexture( jpgpath );
            Add( _poster );

            return;
        }