private void EditorForm_Load(object sender, EventArgs e)
        {
            // Set the dockpanel theme
            var theme = new WeifenLuo.WinFormsUI.Docking.VS2015LightTheme();

            this.browserDockPanel.Theme = theme;

            // Create the different forms for the editor
            this.browseAllForm            = new BrowseAllForm(this.Workspace, this, this.UiService);
            this.browseTreeForm           = new BrowseTreeForm(this.Workspace, this, this.UiService);
            this.selectedFilePropertyForm = new PropertyGridForm();
            this.consoleForm      = new ConsoleForm();
            this.archiveDebugForm = new ArchiveDebugForm(this.Workspace, this.UiService);
            this.itemDebugForm    = new ItemDebugForm(this.Workspace, this.UiService);

            // Redirect standard output to our console form
            this.consoleForm.SetupConsole();

            // Reset the form layout to the default layout
            this.ResetToDefaultLayout();

            // Setup menu item initial state
            this.UpdateMenuItems();

            // Load settings
            this.SettingsService.Load();
        }
Exemple #2
0
        private void EditorForm_Load(object sender, EventArgs e)
        {
            // TODO : Startup items
            //  - verify write access / admin privellegeee?
            // - try to find location of DiRT 4 in steamapps folder? https://stackoverflow.com/questions/29036572/how-to-find-the-path-to-steams-sourcemods-folder

            /* Load settings */
            Settings.LoadSettings();

            /* Set the dockpanel theme */
            var theme = new WeifenLuo.WinFormsUI.Docking.VS2015LightTheme();

            browserDockPanel.Theme = theme;

            /* Create the different forms for the editor */
            _browseAllForm            = new BrowseAllForm(this);
            _browseTreeForm           = new BrowseTreeForm(this);
            _selectedFilePropertyForm = new PropertyGridForm();
            _archivePropertyForm      = new UI.PropertyGridForm();
            _consoleForm = new ConsoleForm();

            /* Redirect standard output to our console form */
            _consoleForm.SetupConsole();

            /* Reset the form layout to the default layout */
            resetToDefaultLayout();

            /* Clear the selected nefs archive */
            _selectedItems = new List <NefsItem>();
            SelectNefsItem(_selectedItems);
        }