示例#1
0
        public MainWindow()
        {
            InitializeComponent();

            _panel = new Panel();
            _panel.Activate();
            _panel.MaxNotifications = 5;
            _panel.MaxWidth = 300;
            _panel.MinWidth = 150;
            //_panel.InformationColor = Brushes.Green;
            //_panel.WarningColor = Brushes.Green;
            //_panel.ErrorColor = Brushes.Magenta;
            _panel.Parent = this;
            _panel.StartupLocation = StartupLocation.TopRight;
        }
示例#2
0
        /// <summary>
        /// Gets debug panels layout.
        /// </summary>
        /// <returns>Debug panels layout.</returns>
        private static IPanel GetDebugLayout()
        {
            IPanelContainer workLeftTabContainer    = GetWorkLeftTabContainer();
            IPanelContainer workMiddleTabContainer  = GetWorkMiddleTabContainer();
            IPanelContainer workRightStackContainer = GetWorkRightStackContainer();
            IPanelContainer workStackContainer      = GetWorkStackContainer(
                workLeftTabContainer, workMiddleTabContainer, workRightStackContainer);

            IPanel enterPanel = GetEnterPanel();

            enterPanel.Activate();

            IPanelContainer subTabContainer1 = GetEnterTopTabContainer();
            IPanelContainer subTabContainer2 = GetDisksTopTabSubContainer();
            IPanelContainer topTabContainer  = GetTopTabContainer(subTabContainer1, subTabContainer2);

            //			workStackContainer.IsSelected = true;
            IPanelContainer mainTabContainer = GetMainTabContainer(enterPanel, workStackContainer, topTabContainer);

            return(mainTabContainer);            //workLeftTabContainer
        }
示例#3
0
 private void OpenPanel(IPanel _panel)
 {
     _panel.Activate();
 }