public InfoForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); FormLocationHelper.Apply(this, "InfoForm", false); versionLabel.Text = typeof(AddInTree).Assembly.GetName().Version.ToString(); demoVersionLabel.Text = Assembly.GetEntryAssembly().GetName().Version.ToString(); listBox.UseCustomTabOffsets = true; listBox.CustomTabOffsets.Add(100); foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) { AssemblyName name = asm.GetName(); listBox.Items.Add(name.Name + "\t" + name.Version.ToString()); } }
private Workbench() { // restore form location from last session FormLocationHelper.Apply(this, "StartupFormPosition", true); contentPanel = new Panel(); contentPanel.Dock = DockStyle.Fill; this.Controls.Add(contentPanel); menu = new MenuStrip(); MenuService.AddItemsToMenu(menu.Items, this, "/Workbench/MainMenu"); toolbar = ToolbarService.CreateToolStrip(this, "/Workbench/Toolbar"); this.Controls.Add(toolbar); this.Controls.Add(menu); // Start with an empty text file ShowContent(new TextViewContent()); // Use the Idle event to update the status of menu and toolbar items. Application.Idle += OnApplicationIdle; }