Exemple #1
0
        private void MemoScope_Load(object sender, System.EventArgs e)
        {
            InitModuleFactory();
            UIServiceHelper.InitServices(msgBus);
            AddToolBar("Dump", 1, Properties.Resources.database_green);
            AddToolBar("Memory", 2, Properties.Resources.ddr_memory_small);
            AddToolBar("Bookmarks", 3, Properties.Resources.award_star_gold_blue);
            AddToolBar("Threads", 4, Properties.Resources.processor_small);
            AddToolBar("Analysis", 5, Properties.Resources.perfomance_analysis);
            InitToolBars();

            var workContent = InitWorkplace(new MemoScopeWorkplace(), DockState.DockLeft);

            InitLog();
            RegisterSkinAction(typeof(Scintilla), ApplyColorsScintilla);
            var       mod       = DockModule(new ExplorerModule(), workContent, DockAlignment.Bottom);
            DockState dockState = MemoScopeSettings.Instance.InitialPosition == DockPanelPosition.Left
                ? MemoScopeSettings.Instance.Visible ? DockState.DockLeft : DockState.DockLeftAutoHide
                : MemoScopeSettings.Instance.Visible ? DockState.DockRight : DockState.DockRightAutoHide;

            workContent.DockState = mod.DockState = dockState;

            WindowState = FormWindowState.Maximized;
            if (AutoLoadFiles != null)
            {
                msgBus.SendMessage(new OpenDumpRequest(AutoLoadFiles));
            }
        }