Exemplo n.º 1
0
        /// <summary>
        /// Get Enter Top Tab Container.
        /// </summary>
        /// <returns>Enter Top Tab Container.</returns>
        private static IPanelContainer GetEnterTopTabContainer()
        {
            IViewModel topGames = RootNode.Inst.GetNode(@"\{78888951-2516-4e63-AC97-90E9D54351D8}\D:\Games");

            topGames.Refresh();

            var topGamesPanel = new PanelBase
            {
                PanelContent = (IPanelContent)topGames
            };

            IViewModel topMusic = RootNode.Inst.GetNode(@"\{78888951-2516-4e63-AC97-90E9D54351D8}\D:\Music");

            topMusic.Refresh();

            var topMusicPanel = new PanelBase
            {
                PanelContent = (IPanelContent)topMusic,
            };

            topMusicPanel.Activate();

            var enterTopTabContainer = new TabContainer
            {
                Header = new PanelHeader
                {
                    Text = "Enter Container"
                }
            };

            enterTopTabContainer.Presenters.Add(topGamesPanel);
            enterTopTabContainer.Presenters.Add(topMusicPanel);
            return(enterTopTabContainer);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get Work Left Tab Container.
        /// </summary>
        /// <returns>Work Left Tab Container.</returns>
        private static IPanelContainer GetWorkLeftTabContainer()
        {
            IViewModel music = RootNode.Inst.GetNode(@"\{78888951-2516-4e63-AC97-90E9D54351D8}\D:\Music");

            music.Refresh();

            var musicPanel = new PanelBase
            {
                PanelContent = (IPanelContent)music,
            };

            musicPanel.Activate();

            IViewModel driveD = RootNode.Inst.GetNode(@"\{78888951-2516-4e63-AC97-90E9D54351D8}\C:\");

            driveD.Refresh();

            var driveDPanel = new PanelBase
            {
                PanelContent = (IPanelContent)driveD
            };

            var workLeftTabContainer = new TabContainer
            {
                Header = new PanelHeader
                {
                    Text = "Left Tab Container"
                }
            };

            workLeftTabContainer.Presenters.Add(driveDPanel);
            workLeftTabContainer.Presenters.Add(musicPanel);
            return(workLeftTabContainer);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Get Disks Top Tab Sub Container.
        /// </summary>
        /// <returns>Disks Top Tab Sub Container.</returns>
        private static IPanelContainer GetDisksTopTabSubContainer()
        {
            IViewModel topDriveC = RootNode.Inst.GetNode(@"\{78888951-2516-4e63-AC97-90E9D54351D8}\C:\");

            topDriveC.Refresh();

            var topDriveCpanel = new PanelBase
            {
                PanelContent = (IPanelContent)topDriveC
            };

            IViewModel topDriveD = RootNode.Inst.GetNode(@"\{78888951-2516-4e63-AC97-90E9D54351D8}\D:\");

            topDriveD.Refresh();

            var topDriveDpanel = new PanelBase
            {
                PanelContent = (IPanelContent)topDriveD,
            };

            topDriveDpanel.Activate();

            var subTabContainer2 = new TabContainer
            {
                Header = new PanelHeader
                {
                    Text = "Disks Container"
                },
            };

            subTabContainer2.Activate();

            subTabContainer2.Presenters.Add(topDriveCpanel);
            subTabContainer2.Presenters.Add(topDriveDpanel);
            return(subTabContainer2);
        }