Example #1
0
        private void SetSchema(object sender, System.EventArgs e)
        {
            //We need to close all the forms or else it goes boom
            foreach (IDockContent document in dockPanel.DocumentsToArray())
            {
                document.DockHandler.Close();
            }

            //Lets nuke all the default stuff too while we are at it
            if (ConsoleForm != null) { ConsoleForm.DockPanel = null; }
            if (ProjectView != null) { ProjectView.DockPanel = null; }
            if (ObjectBrowser != null) { ObjectBrowser.DockPanel = null; }

            if (sender == theme2005Button)
            {
                dockPanel.Theme = vS2005Theme1;
                EnableVS2012Renderer(false);
            }
            else if (sender == theme2003Button)
            {
                dockPanel.Theme = vS2003Theme1;
                EnableVS2012Renderer(false);
            }
            else if (sender == theme2012LightButton)
            {
                dockPanel.Theme = vS2012LightTheme1;
                EnableVS2012Renderer(true);
            }

            theme2005Button.Checked = (sender == theme2005Button);
            theme2003Button.Checked = (sender == theme2003Button);
            theme2012LightButton.Checked = (sender == theme2012LightButton);

            if (ConsoleForm != null) { ConsoleForm.Show(dockPanel, DockState.DockBottom); }
            if (ProjectView != null) { ProjectView.Show(dockPanel, DockState.DockLeft); }
            if (ObjectBrowser != null) { ObjectBrowser.Show(dockPanel, DockState.DockLeft); }

            StartPageForm = new StartPageForm(ShowNewAddonWizard, LoadAddon, LoadProject);
            StartPageForm.Show(dockPanel, DockState.Document);
            UpdateStartPage();

        }
Example #2
0
 private void ShowStartPage()
 {
     if (StartPageForm == null || StartPageForm.IsDisposed) { StartPageForm = new StartPageForm(ShowNewAddonWizard,LoadAddon, LoadProject); }
     if (StartPageForm.Visible) { return; }
     StartPageForm.Show(dockPanel, DockState.Document);
 }