Exemplo n.º 1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            MetroSkinManager.RefreshStyles();

            if (SettingsModel != null)
            {
                WindowState = SettingsModel.WindowState;
                if (m_leftPanel != null)
                {
                    m_leftPanel.IsRolled = SettingsModel.LeftPanelRolled;
                    m_leftPanel.IsDocked = SettingsModel.LeftPanelDocked;
                }
                if (m_rightPanel != null)
                {
                    m_rightPanel.IsRolled = SettingsModel.RightPanelRolled;
                    m_rightPanel.IsDocked = SettingsModel.RightPanelDocked;
                }
                if (m_bottomPanel != null)
                {
                    m_bottomPanel.IsRolled = SettingsModel.BottomPanelRolled;
                    m_bottomPanel.IsDocked = SettingsModel.BottomPanelDocked;
                }
            }

            ValidateSettings();

            if (m_mainPanelTabs != null)
            {
                m_mainPanelTabs.Selected += new TabControlEventHandler(m_mainPanelTabs_Selected);
            }
        }