Пример #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Bootstrap();
            //SetTheme(VisualStudioToolStripExtender.VsVersion.Vs2015, vS2015LightTheme1);

            AddonManager.Instance.PostInit();

            serializeContext = new DeserializeDockContent(GetContentFromPersistString);
            if (!LoadLayoutConfig())
            {
                resourcesForm.Show(dockPanel, DockState.DockLeft);
                propertiesForm.Show(dockPanel, DockState.DockRight);
                contentForm.Show(dockPanel, DockState.Document);
                consoleForm.Show(dockPanel, DockState.DockBottomAutoHide);
            }

            resourcesForm.UpdateView();

            #region Splash Screen
            if (showSplashScreen)
            {
                LongOperationNotifier.LongOperationNotify -= LongOperationCallbackManager_LongOperationNotify;
                this.Show();
                SplashScreen.Hide();
                this.Activate();
            }
            #endregion

            this.WindowState = FormWindowState.Maximized;

            Debug("准备就绪...");
        }
Пример #2
0
        private void buttonShowOrder_Click(object sender, EventArgs e)
        {
            List <Order> orders = GetSelectedOrders();

            if (orders.Count > 1)
            {
                MessageBox.Show("Select one order to modify.");
                return;
            }

            if (orders.Count == 0 || orders[0].IsOpenOrPending == false)
            {
                return;
            }

            PropertiesForm form = new PropertiesForm("Order", orders[0]);

            form.Show();
        }
Пример #3
0
 public void ShowPropertiesForm()
 {
     propertiesForm.Show(dockPanel, DockState.DockRight);
 }