Example #1
0
 /// <summary>
 /// Performs a base uinut if the window. This includes the following tasks
 /// - Setting the reference to the window in MP
 /// - Setting the reference to the control list of the MP window
 /// </summary>
 protected override void BaseInit()
 {
     //_fullscreenWindow = GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO) as GUIVideoFullscreen;
     _fullscreenWindow = GUIWindowManager.GetWindow(OnlineVideos.MediaPortal1.Player.GUIOnlineVideoFullscreen.WINDOW_FULLSCREEN_ONLINEVIDEO) as GUIVideoFullscreen;
     if (_fullscreenWindow != null)
     {
         _controlList = _fullscreenWindow.controlList;
     }
 }
Example #2
0
 /// <summary>
 /// Performs a base uinut if the window. This includes the following tasks
 /// - Setting the reference to the window in MP
 /// - Setting the reference to the control list of the MP window
 /// </summary>
 protected override void BaseInit()
 {
     _fullscreenWindow = GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO) as GUIVideoFullscreen;
     _baseWindow       = _fullscreenWindow;
     if (_fullscreenWindow != null)
     {
         _controlList = _fullscreenWindow.controlList;
     }
 }
Example #3
0
 /// <summary>
 /// Constructor, which creates all elements
 /// </summary>
 public FullscreenWindow()
 {
     //_fullscreenWindow = GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO) as GUIVideoFullscreen;
     _fullscreenWindow = GUIWindowManager.GetWindow(OnlineVideos.MediaPortal1.Player.GUIOnlineVideoFullscreen.WINDOW_FULLSCREEN_ONLINEVIDEO) as GUIVideoFullscreen;
     if (_fullscreenWindow != null)
     {
         _controlList = _fullscreenWindow.controlList;
         GenerateElements();
         _cacheElements      = new List <BaseElement>();
         _imageCacheElements = new List <BaseElement>();
         GUIControl temp;
         GUIGroup   help;
         foreach (var element in _controlList)
         {
             temp = element as GUIControl;
             if (temp != null)
             {
                 if (temp.GetType() == typeof(GUIGroup))
                 {
                     help = temp as GUIGroup;
                     if (help != null)
                     {
                         foreach (var uiElement in help.Children)
                         {
                             GUIControl temp2 = uiElement as GUIControl;
                             if (temp2 != null)
                             {
                                 CheckElement(temp2);
                             }
                         }
                     }
                 }
                 CheckElement(temp);
             }
         }
         if (_background == null)
         {
             _background = _background2;
         }
         if (_background == null)
         {
             _background = _background3;
         }
     }
 }