Exemple #1
0
        private void ShowInfo()
        {
            try
            {
                GUIWindow fWindow        = GUIWindowManager.GetWindow(Utils.ActiveWindow);
                int       FocusControlID = fWindow.GetFocusControlId();

                int idx = -1;
                if (ControlIDPlays.Contains(FocusControlID))
                {
                    idx = ControlIDPlays.IndexOf(FocusControlID) + 1;
                }
                //
                // CurrentFacade.Facade = Utils.GetLatestsFacade(CurrentFacade.ControlID);
                if (CurrentFacade.Facade != null && CurrentFacade.Facade.Focus && CurrentFacade.Facade.SelectedListItem != null)
                {
                    idx = CurrentFacade.Facade.SelectedListItem.ItemId;
                }
                //
                if (idx > 0)
                {
                    IMDBMovie movie = (IMDBMovie)latestMyVideosForPlay[idx];

                    // Open video info screen
                    GUIVideoInfo videoInfo = (GUIVideoInfo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIDEO_INFO);
                    videoInfo.Movie = movie;

                    GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_VIDEO_INFO);
                }
            }
            catch (Exception ex)
            {
                logger.Error("ShowInfo: " + ex.ToString());
            }
        }
Exemple #2
0
        private void ShowInfo(GUIListItem item)
        {
            if (item == null)
            {
                return;
            }

            try
            {
                NewMovie newmovie = item.AlbumInfoTag as NewMovie;
                if (newmovie != null)
                {
                    if (newmovie.MovieDetails != null)
                    {
                        IMDBMovie movie = (IMDBMovie)newmovie.MovieDetails;
                        // Open video info screen
                        GUIVideoInfo videoInfo = (GUIVideoInfo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIDEO_INFO);
                        videoInfo.Movie = movie;

                        GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_VIDEO_INFO);
                    }
                }
            }
            catch (System.Exception ex)
            {
                logger.Error("ShowInfo: " + ex.ToString());
            }
        }