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("准备就绪..."); }
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(); }
public void ShowPropertiesForm() { propertiesForm.Show(dockPanel, DockState.DockRight); }