private void _cmdFileRecentlyUsed_Click(object sender, EventArgs e) { Crownwood.Magic.Menus.MenuCommand pInfo = (Crownwood.Magic.Menus.MenuCommand)sender; string fileName = (string)pInfo.Tag; ProjectInfo project = SerializationHandler.OpenProjectInfo((string)pInfo.Tag); if (project != null) { _pic.Add(project); _pt.SelectProject(project); } }
/// <summary> /// 在TabControl的右键中加入菜单 /// </summary> protected void OnMouseUpTabPage(object sender, System.Windows.Forms.MouseEventArgs e) { if (this.tabControlMain.TabPages.Count > 0 && e.Button == MouseButtons.Right && this.tabControlMain.SelectedTab.Selected) { var muMenu = new Crownwood.Magic.Menus.MenuControl(); var menu1 = new Crownwood.Magic.Menus.MenuCommand("保存(&S)", new EventHandler(OnSaveSelected)); var menu2 = new Crownwood.Magic.Menus.MenuCommand("关闭(&C)", new EventHandler(OnColseSelected)); var menu3 = new Crownwood.Magic.Menus.MenuCommand("除此之外全部关闭(&A)", new EventHandler(OnColseUnSelected)); var pm = new Crownwood.Magic.Menus.PopupMenu(); pm.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { menu1, menu2, menu3 }); pm.TrackPopup(this.tabControlMain.PointToScreen(new Point(e.X, e.Y))); } if (this.tabControlMain.TabPages.Count > 0 && e.Button == MouseButtons.Left && this.tabControlMain.SelectedTab.Selected) { tsbtnExecSql.Visible = false; switch (this.tabControlMain.SelectedTab.Control.Name) { case "DbQuery": { tsbtnExecSql.Visible = true; } break; case "DbBrowser": { } break; case "StartPageForm": { } break; default: break; } } }
private void ProfilerForm_Load(object sender, System.EventArgs e) { this.Icon = new Icon(this.GetType().Assembly.GetManifestResourceStream("NProf.GUI.Resources.app-icon.ico")); CommandBarItem item; commandBar2 = new CommandBar(); commandBar2.Style = CommandBarStyle.ToolBar; item = new CommandBarButton(Images.New, "New", new EventHandler(_cmdFileNew_Click)); _cmdFileNew.Image = Images.New; commandBar2.Items.Add(item); item = new CommandBarButton(Images.Open, "Open", new EventHandler(_cmdFileOpen_Click)); _cmdFileOpen.Image = Images.Open; commandBar2.Items.Add(item); item = new CommandBarButton(Images.Save, "Save", new EventHandler(_cmdFileSave_Click)); _cmdFileSave.Image = Images.Save; commandBar2.Items.Add(item); commandBar2.Items.AddSeparator(); item = new CommandBarButton(Images.Cut, "Cut", new EventHandler(_cmdFileNew_Click)); item.IsEnabled = false; commandBar2.Items.Add(item); item = new CommandBarButton(Images.Copy, "Copy", new EventHandler(_cmdFileNew_Click)); item.IsEnabled = false; commandBar2.Items.Add(item); item = new CommandBarButton(Images.Paste, "Paste", new EventHandler(_cmdFileNew_Click)); item.IsEnabled = false; commandBar2.Items.Add(item); commandBar2.Items.AddSeparator(); item = new CommandBarButton(Images.Back, "Back", new EventHandler(_cmdViewNavBack_Click)); _cmdViewNavBack.Image = Images.Back; commandBar2.Items.Add(item); item = new CommandBarButton(Images.Forward, "Forward", new EventHandler(_cmdViewNavForward_Click)); _cmdViewNavForward.Image = Images.Forward; commandBar2.Items.Add(item); commandBarManager1.CommandBars.Add(commandBar2); _pic = new ProjectInfoCollection(); _pt = new ProjectTree(); _pic.ProjectRemoved += new NProf.Glue.Profiler.Project.ProjectInfoCollection.ProjectEventHandler(_pic_ProjectRemoved); _pt.Projects = _pic; _pt.ProjectDoubleClicked += new ProjectTree.ProjectDoubleClickedHandler(_pt_ProjectDoubleClicked); _pt.RunDoubleClicked += new ProjectTree.RunDoubleClickedHandler(_pt_RunDoubleClicked); _pt.ExecutablesDropped += new ProjectTree.ExecutablesDroppedHandler(_pt_ExecutableDropped); _dock = new Crownwood.Magic.Docking.DockingManager(this, Crownwood.Magic.Common.VisualStyle.IDE); _dock.OuterControl = commandBarManager1; _dock.InnerControl = _tcProfilers; Crownwood.Magic.Docking.Content c = _dock.Contents.Add(_pt, "Projects"); Crownwood.Magic.Docking.WindowContent wc = _dock.AddContentWithState(c, Crownwood.Magic.Docking.State.DockLeft); this.Text = "nprof Profiling Application - v" + Profiler.Version; _tcProfilers.Appearance = Crownwood.Magic.Controls.TabControl.VisualAppearance.MultiDocument; SerializationHandler.DataStoreDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\NProf\\" + Profiler.Version; _cmdFileRecentProjects.MenuCommands.Clear(); int count = 1; foreach (UsedFile usedFile in SerializationHandler.ProjectsHistory) { if (count > 10) { break; } string label = (count == 10 ? "1&0" : "&" + count.ToString()) + " " + usedFile.ProjectName; Crownwood.Magic.Menus.MenuCommand pInfo = new Crownwood.Magic.Menus.MenuCommand(label); pInfo.Tag = usedFile.FileName; pInfo.Click += new EventHandler(_cmdFileRecentlyUsed_Click); pInfo.Shortcut = Shortcut.CtrlShift1 + (count == 10 ? -1 : count - 1); _cmdFileRecentProjects.MenuCommands.Add(pInfo); ++count; } if (count == 1) { _cmdFileRecentProjects.Enabled = false; } if (_piInitialProject != null) { _pic.Add(_piInitialProject); _pt.SelectProject(_piInitialProject); _cmdProjectRun_Click(null, null); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.menuItem1 = new System.Windows.Forms.MenuItem(); this._menuMain = new Crownwood.Magic.Menus.MenuControl(); this._menuFile = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileNew = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileOpen = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileClose = new Crownwood.Magic.Menus.MenuCommand(); this._sep1 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileSave = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileSaveAs = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileSaveAll = new Crownwood.Magic.Menus.MenuCommand(); this._sep2 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileRecentProjects = new Crownwood.Magic.Menus.MenuCommand(); this._sep3 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileExit = new Crownwood.Magic.Menus.MenuCommand(); this._menuEdit = new Crownwood.Magic.Menus.MenuCommand(); this._menuProject = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRun = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectStop = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectOptions = new Crownwood.Magic.Menus.MenuCommand(); this._sep4 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRunViewMessages = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRunCopy = new Crownwood.Magic.Menus.MenuCommand(); this._menuView = new Crownwood.Magic.Menus.MenuCommand(); this._cmdViewProjectView = new Crownwood.Magic.Menus.MenuCommand(); this._cmdViewNavBack = new Crownwood.Magic.Menus.MenuCommand(); this._cmdViewNavForward = new Crownwood.Magic.Menus.MenuCommand(); this._menuHelp = new Crownwood.Magic.Menus.MenuCommand(); this._cmdHelpAbout = new Crownwood.Magic.Menus.MenuCommand(); this._tcProfilers = new Crownwood.Magic.Controls.TabControl(); this._sbStatusBar = new System.Windows.Forms.StatusBar(); this._sbpMessage = new System.Windows.Forms.StatusBarPanel(); this.commandBarManager1 = new Reflector.UserInterface.CommandBarManager(); this.commandBar1 = new Reflector.UserInterface.CommandBar(); ((System.ComponentModel.ISupportInitialize)(this._sbpMessage)).BeginInit(); this.SuspendLayout(); // // menuItem1 // this.menuItem1.Index = -1; this.menuItem1.Text = "Close Tab"; // // _menuMain // this._menuMain.AnimateStyle = Crownwood.Magic.Menus.Animation.System; this._menuMain.AnimateTime = 100; this._menuMain.Cursor = System.Windows.Forms.Cursors.Arrow; this._menuMain.Direction = Crownwood.Magic.Common.Direction.Horizontal; this._menuMain.Dock = System.Windows.Forms.DockStyle.Top; this._menuMain.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0))); this._menuMain.HighlightTextColor = System.Drawing.SystemColors.MenuText; this._menuMain.Location = new System.Drawing.Point(0, 0); this._menuMain.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._menuFile, this._menuEdit, this._menuProject, this._menuView, this._menuHelp }); this._menuMain.Name = "_menuMain"; this._menuMain.Size = new System.Drawing.Size(920, 25); this._menuMain.Style = Crownwood.Magic.Common.VisualStyle.IDE; this._menuMain.TabIndex = 0; this._menuMain.TabStop = false; this._menuMain.Text = "menuControl1"; // // _menuFile // this._menuFile.Description = "File"; this._menuFile.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdFileNew, this._cmdFileOpen, this._cmdFileClose, this._sep1, this._cmdFileSave, this._cmdFileSaveAs, this._cmdFileSaveAll, this._sep2, this._cmdFileRecentProjects, this._sep3, this._cmdFileExit }); this._menuFile.Text = "&File"; // // _cmdFileNew // this._cmdFileNew.Description = "New Profiler Project"; this._cmdFileNew.Shortcut = System.Windows.Forms.Shortcut.CtrlN; this._cmdFileNew.Text = "&New..."; this._cmdFileNew.Click += new System.EventHandler(this._cmdFileNew_Click); this._cmdFileNew.Update += new System.EventHandler(this.UpdateMenuItems); // // _cmdFileOpen // this._cmdFileOpen.Description = "Open a profile project"; this._cmdFileOpen.Text = "&Open..."; this._cmdFileOpen.Click += new System.EventHandler(this._cmdFileOpen_Click); // // _cmdFileClose // this._cmdFileClose.Description = "Close the project"; this._cmdFileClose.Text = "&Close"; this._cmdFileClose.Click += new System.EventHandler(this._cmdFileClose_Click); // // _sep1 // this._sep1.Description = "MenuItem"; this._sep1.Text = "-"; // // _cmdFileSave // this._cmdFileSave.Description = "Save the active profiler project"; this._cmdFileSave.Shortcut = System.Windows.Forms.Shortcut.CtrlS; this._cmdFileSave.Text = "&Save"; this._cmdFileSave.Click += new System.EventHandler(this._cmdFileSave_Click); // // _cmdFileSaveAs // this._cmdFileSaveAs.Description = "Save the active profiler project as a specified file name"; this._cmdFileSaveAs.Text = "Save &As..."; this._cmdFileSaveAs.Click += new System.EventHandler(this._cmdFileSaveAs_Click); // // _cmdFileSaveAll // this._cmdFileSaveAll.Description = "Save all open profiler projects"; this._cmdFileSaveAll.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftS; this._cmdFileSaveAll.Text = "Save A&ll"; this._cmdFileSaveAll.Click += new System.EventHandler(this._cmdFileSaveAll_Click); // // _sep2 // this._sep2.Description = "MenuItem"; this._sep2.Text = "-"; // // _cmdFileRecentProjects // this._cmdFileRecentProjects.Description = "Provides a list of the 10 most recently opened projects for easy access"; this._cmdFileRecentProjects.Text = "Recent Projects"; // // _sep3 // this._sep3.Description = "-"; this._sep3.Text = "-"; // // _cmdFileExit // this._cmdFileExit.Description = "Exit the application"; this._cmdFileExit.Shortcut = System.Windows.Forms.Shortcut.AltF4; this._cmdFileExit.Text = "E&xit"; this._cmdFileExit.Click += new System.EventHandler(this._cmdFileExit_Click); // // _menuEdit // this._menuEdit.Description = "Edit"; this._menuEdit.Enabled = false; this._menuEdit.Text = "&Edit"; // // _menuProject // this._menuProject.Description = "Project commands"; this._menuProject.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdProjectRun, this._cmdProjectStop, this._cmdProjectOptions, this._sep4, this._cmdProjectRunViewMessages, this._cmdProjectRunCopy }); this._menuProject.Text = "&Project"; // // _cmdProjectRun // this._cmdProjectRun.Description = "Run the current project"; this._cmdProjectRun.Shortcut = System.Windows.Forms.Shortcut.F5; this._cmdProjectRun.Text = "Start project run"; this._cmdProjectRun.Click += new System.EventHandler(this._cmdProjectRun_Click); this._cmdProjectRun.Update += new System.EventHandler(this.UpdateMenuItems); // // _cmdProjectStop // this._cmdProjectStop.Description = "Stop the running project"; this._cmdProjectStop.Text = "Stop project run"; // // _cmdProjectOptions // this._cmdProjectOptions.Description = "Modify the options for this project"; this._cmdProjectOptions.Shortcut = System.Windows.Forms.Shortcut.F2; this._cmdProjectOptions.Text = "Options..."; this._cmdProjectOptions.Click += new System.EventHandler(this._cmdProjectOptions_Click); this._cmdProjectOptions.Update += new System.EventHandler(this.UpdateMenuItems); // // _sep4 // this._sep4.Description = "-"; this._sep4.Text = "-"; // // _cmdProjectRunViewMessages // this._cmdProjectRunViewMessages.Description = "View the Messages from the current profiler run..."; this._cmdProjectRunViewMessages.Text = "View Run Messages..."; this._cmdProjectRunViewMessages.Click += new System.EventHandler(this._cmdProjectRunViewMessages_Click); // // _cmdProjectRunCopy // this._cmdProjectRunCopy.Description = "Copy the project run data to the clipboard"; this._cmdProjectRunCopy.Text = "Copy Project Run Data"; // // _menuView // this._menuView.Description = "View"; this._menuView.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdViewProjectView, this._cmdViewNavBack, this._cmdViewNavForward }); this._menuView.Text = "&View"; // // _cmdViewProjectView // this._cmdViewProjectView.Description = "Show/hide the project tab"; this._cmdViewProjectView.Text = "Project tab"; this._cmdViewProjectView.Click += new System.EventHandler(this._cmdViewProjectView_Click); this._cmdViewProjectView.Update += new System.EventHandler(this._cmdViewProjectView_Update); // // _cmdViewNavBack // this._cmdViewNavBack.Description = "Navigate Back"; this._cmdViewNavBack.Text = "Back"; this._cmdViewNavBack.Click += new System.EventHandler(this._cmdViewNavBack_Click); // // _cmdViewNavForward // this._cmdViewNavForward.Description = "Navigate Forward"; this._cmdViewNavForward.Text = "Forward"; this._cmdViewNavForward.Click += new System.EventHandler(this._cmdViewNavForward_Click); // // _menuHelp // this._menuHelp.Description = "Help"; this._menuHelp.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdHelpAbout }); this._menuHelp.Text = "&Help"; // // _cmdHelpAbout // this._cmdHelpAbout.Description = "About nprof"; this._cmdHelpAbout.Text = "About nprof..."; this._cmdHelpAbout.Click += new System.EventHandler(this._cmdHelpAbout_Click); // // _tcProfilers // this._tcProfilers.Dock = System.Windows.Forms.DockStyle.Fill; this._tcProfilers.IDEPixelArea = true; this._tcProfilers.Location = new System.Drawing.Point(0, 26); this._tcProfilers.Name = "_tcProfilers"; this._tcProfilers.Size = new System.Drawing.Size(920, 629); this._tcProfilers.TabIndex = 2; this._tcProfilers.ClosePressed += new System.EventHandler(this._tcProfilers_ClosePressed); // // _sbStatusBar // this._sbStatusBar.Location = new System.Drawing.Point(0, 655); this._sbStatusBar.Name = "_sbStatusBar"; this._sbStatusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this._sbpMessage }); this._sbStatusBar.ShowPanels = true; this._sbStatusBar.Size = new System.Drawing.Size(920, 22); this._sbStatusBar.TabIndex = 3; // // _sbpMessage // this._sbpMessage.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this._sbpMessage.Text = "Ready."; this._sbpMessage.Width = 904; // // commandBarManager1 // this.commandBarManager1.Dock = System.Windows.Forms.DockStyle.Top; this.commandBarManager1.Location = new System.Drawing.Point(0, 25); this.commandBarManager1.Name = "commandBarManager1"; this.commandBarManager1.Size = new System.Drawing.Size(920, 1); this.commandBarManager1.TabIndex = 3; this.commandBarManager1.TabStop = false; this.commandBarManager1.Text = "commandBarManager1"; // // commandBar1 // this.commandBar1.Dock = System.Windows.Forms.DockStyle.Top; this.commandBar1.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0))); this.commandBar1.Location = new System.Drawing.Point(0, 64); this.commandBar1.Name = "commandBar1"; this.commandBar1.Size = new System.Drawing.Size(920, 64); this.commandBar1.Style = Reflector.UserInterface.CommandBarStyle.ToolBar; this.commandBar1.TabIndex = 4; this.commandBar1.TabStop = false; this.commandBar1.Text = "commandBar1"; // // ProfilerForm // this.AllowDrop = true; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(920, 677); this.Controls.Add(this._tcProfilers); this.Controls.Add(this.commandBarManager1); this.Controls.Add(this._menuMain); this.Controls.Add(this._sbStatusBar); this.Name = "ProfilerForm"; this.Text = "nprof Profiling Application - Alpha v0.6"; this.Closing += new System.ComponentModel.CancelEventHandler(this.ProfilerForm_Closing); this.Load += new System.EventHandler(this.ProfilerForm_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.ProfilerForm_Layout); ((System.ComponentModel.ISupportInitialize)(this._sbpMessage)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.menuItem1 = new System.Windows.Forms.MenuItem(); this._menuMain = new Crownwood.Magic.Menus.MenuControl(); this._menuFile = new Crownwood.Magic.Menus.MenuCommand(); this._cmdNew = new Crownwood.Magic.Menus.MenuCommand(); this._cmdOpen = new Crownwood.Magic.Menus.MenuCommand(); this._sep1 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdSave = new Crownwood.Magic.Menus.MenuCommand(); this._cmdSaveAll = new Crownwood.Magic.Menus.MenuCommand(); this._sep2 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdExit = new Crownwood.Magic.Menus.MenuCommand(); this._menuEdit = new Crownwood.Magic.Menus.MenuCommand(); this._menuProject = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRun = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectStop = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectOptions = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand5 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRunViewMessages = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRunCopy = new Crownwood.Magic.Menus.MenuCommand(); this._menuView = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectView = new Crownwood.Magic.Menus.MenuCommand(); this._menuHelp = new Crownwood.Magic.Menus.MenuCommand(); this._cmdHelpAbout = new Crownwood.Magic.Menus.MenuCommand(); this._tcProfilers = new Crownwood.Magic.Controls.TabControl(); this._sbStatusBar = new System.Windows.Forms.StatusBar(); this._sbpMessage = new System.Windows.Forms.StatusBarPanel(); this.menuCommand1 = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand2 = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand3 = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand4 = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand6 = new Crownwood.Magic.Menus.MenuCommand(); ((System.ComponentModel.ISupportInitialize)(this._sbpMessage)).BeginInit(); this.SuspendLayout(); // // menuItem1 // this.menuItem1.Index = -1; this.menuItem1.Text = "Close Tab"; // // _menuMain // this._menuMain.AnimateStyle = Crownwood.Magic.Menus.Animation.System; this._menuMain.AnimateTime = 100; this._menuMain.Cursor = System.Windows.Forms.Cursors.Arrow; this._menuMain.Direction = Crownwood.Magic.Common.Direction.Horizontal; this._menuMain.Dock = System.Windows.Forms.DockStyle.Top; this._menuMain.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0))); this._menuMain.HighlightTextColor = System.Drawing.SystemColors.MenuText; this._menuMain.Location = new System.Drawing.Point(0, 0); this._menuMain.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._menuFile, this._menuEdit, this._menuProject, this._menuView, this._menuHelp}); this._menuMain.Name = "_menuMain"; this._menuMain.Size = new System.Drawing.Size(920, 25); this._menuMain.Style = Crownwood.Magic.Common.VisualStyle.IDE; this._menuMain.TabIndex = 0; this._menuMain.TabStop = false; this._menuMain.Text = "menuControl1"; // // _menuFile // this._menuFile.Description = "File"; this._menuFile.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdNew, this._cmdOpen, this._sep1, this._cmdSave, this._cmdSaveAll, this._sep2, this._cmdExit}); this._menuFile.Text = "&File"; // // _cmdNew // this._cmdNew.Description = "New Profiler Project"; this._cmdNew.Text = "New..."; this._cmdNew.Click += new System.EventHandler(this._cmdNew_Click); // // _cmdOpen // this._cmdOpen.Description = "Open a profile project"; this._cmdOpen.Enabled = false; this._cmdOpen.Text = "Open"; // // _sep1 // this._sep1.Description = "MenuItem"; this._sep1.Text = "-"; // // _cmdSave // this._cmdSave.Description = "Save the active profiler project"; this._cmdSave.Enabled = false; this._cmdSave.Text = "Save"; // // _cmdSaveAll // this._cmdSaveAll.Description = "Save all open profiler projects"; this._cmdSaveAll.Enabled = false; this._cmdSaveAll.Text = "Save All"; // // _sep2 // this._sep2.Description = "MenuItem"; this._sep2.Text = "-"; // // _cmdExit // this._cmdExit.Description = "Exit the application"; this._cmdExit.Text = "E&xit"; this._cmdExit.Click += new System.EventHandler(this._cmdExit_Click); // // _menuEdit // this._menuEdit.Description = "Edit"; this._menuEdit.Enabled = false; this._menuEdit.Text = "&Edit"; // // _menuProject // this._menuProject.Description = "Project commands"; this._menuProject.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdProjectRun, this._cmdProjectStop, this._cmdProjectOptions, this.menuCommand5, this._cmdProjectRunViewMessages, this._cmdProjectRunCopy}); this._menuProject.Text = "&Project"; // // _cmdProjectRun // this._cmdProjectRun.Description = "Run the current project"; this._cmdProjectRun.Text = "Start project run"; this._cmdProjectRun.Click += new System.EventHandler(this._cmdProjectRun_Click); this._cmdProjectRun.Update += new System.EventHandler(this.UpdateProjectItems); // // _cmdProjectStop // this._cmdProjectStop.Description = "Stop the running project"; this._cmdProjectStop.Text = "Stop project run"; // // _cmdProjectOptions // this._cmdProjectOptions.Description = "Modify the options for this project"; this._cmdProjectOptions.Text = "Options..."; this._cmdProjectOptions.Click += new System.EventHandler(this._cmdProjectOptions_Click); this._cmdProjectOptions.Update += new System.EventHandler(this.UpdateProjectItems); // // menuCommand5 // this.menuCommand5.Description = "-"; this.menuCommand5.Text = "-"; // // _cmdProjectRunViewMessages // this._cmdProjectRunViewMessages.Description = "View the Messages from the current profiler run..."; this._cmdProjectRunViewMessages.Text = "View Run Messages..."; this._cmdProjectRunViewMessages.Click += new System.EventHandler(this._cmdProjectRunViewMessages_Click); // // _cmdProjectRunCopy // this._cmdProjectRunCopy.Description = "Copy the project run data to the clipboard"; this._cmdProjectRunCopy.Text = "Copy Project Run Data"; // // _menuView // this._menuView.Description = "View"; this._menuView.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdProjectView}); this._menuView.Text = "&View"; // // _cmdProjectView // this._cmdProjectView.Description = "Show/hide the project tab"; this._cmdProjectView.Text = "Project tab"; this._cmdProjectView.Click += new System.EventHandler(this._cmdProjectView_Click); this._cmdProjectView.Update += new System.EventHandler(this._cmdProjectView_Update); // // _menuHelp // this._menuHelp.Description = "Help"; this._menuHelp.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdHelpAbout}); this._menuHelp.Text = "&Help"; // // _cmdHelpAbout // this._cmdHelpAbout.Description = "About nprof"; this._cmdHelpAbout.Text = "About nprof..."; this._cmdHelpAbout.Click += new System.EventHandler(this._cmdHelpAbout_Click); // // _tcProfilers // this._tcProfilers.Dock = System.Windows.Forms.DockStyle.Fill; this._tcProfilers.IDEPixelArea = true; this._tcProfilers.Location = new System.Drawing.Point(0, 25); this._tcProfilers.Name = "_tcProfilers"; this._tcProfilers.Size = new System.Drawing.Size(920, 630); this._tcProfilers.TabIndex = 2; this._tcProfilers.SelectionChanged += new System.EventHandler(this._tcProfilers_SelectionChanged); this._tcProfilers.ClosePressed += new System.EventHandler(this._tcProfilers_ClosePressed); // // _sbStatusBar // this._sbStatusBar.Location = new System.Drawing.Point(0, 655); this._sbStatusBar.Name = "_sbStatusBar"; this._sbStatusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this._sbpMessage}); this._sbStatusBar.ShowPanels = true; this._sbStatusBar.Size = new System.Drawing.Size(920, 22); this._sbStatusBar.TabIndex = 3; // // _sbpMessage // this._sbpMessage.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this._sbpMessage.Text = "Ready."; this._sbpMessage.Width = 904; // // menuCommand1 // this.menuCommand1.Description = "MenuItem"; // // menuCommand2 // this.menuCommand2.Break = true; this.menuCommand2.Description = "MenuItem"; // // menuCommand3 // this.menuCommand3.Break = true; this.menuCommand3.Description = "MenuItem"; // // menuCommand4 // this.menuCommand4.Description = "MenuItem"; // // menuCommand6 // this.menuCommand6.Description = "MenuItem"; // // ProfilerForm // this.AllowDrop = true; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(920, 677); this.Controls.Add(this._tcProfilers); this.Controls.Add(this._menuMain); this.Controls.Add(this._sbStatusBar); this.Name = "ProfilerForm"; this.Text = "nprof Profiling Application - Alpha v0.6"; this.Closing += new System.ComponentModel.CancelEventHandler(this.ProfilerForm_Closing); this.Load += new System.EventHandler(this.ProfilerForm_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.ProfilerForm_Layout); this.Leave += new System.EventHandler(this.ProfilerForm_Leave); this.Deactivate += new System.EventHandler(this.ProfilerForm_Deactivate); ((System.ComponentModel.ISupportInitialize)(this._sbpMessage)).EndInit(); this.ResumeLayout(false); }
private void ProfilerForm_Load(object sender, System.EventArgs e) { this.Icon = new Icon( this.GetType().Assembly.GetManifestResourceStream( "NProf.GUI.Resources.app-icon.ico" ) ); CommandBarItem item; commandBar2 = new CommandBar(); commandBar2.Style = CommandBarStyle.ToolBar; item = new CommandBarButton( Images.New, "New", new EventHandler( _cmdFileNew_Click ) ); _cmdFileNew.Image = Images.New; commandBar2.Items.Add( item ); item = new CommandBarButton( Images.Open, "Open", new EventHandler( _cmdFileOpen_Click ) ); _cmdFileOpen.Image = Images.Open; commandBar2.Items.Add( item ); item = new CommandBarButton( Images.Save, "Save", new EventHandler( _cmdFileSave_Click ) ); _cmdFileSave.Image = Images.Save; commandBar2.Items.Add( item ); commandBar2.Items.AddSeparator(); item = new CommandBarButton( Images.Cut, "Cut", new EventHandler( _cmdFileNew_Click ) ); item.IsEnabled = false; commandBar2.Items.Add( item ); item = new CommandBarButton( Images.Copy, "Copy", new EventHandler( _cmdFileNew_Click ) ); item.IsEnabled = false; commandBar2.Items.Add( item ); item = new CommandBarButton( Images.Paste, "Paste", new EventHandler( _cmdFileNew_Click ) ); item.IsEnabled = false; commandBar2.Items.Add( item ); commandBar2.Items.AddSeparator(); item = new CommandBarButton( Images.Back, "Back", new EventHandler( _cmdViewNavBack_Click ) ); _cmdViewNavBack.Image = Images.Back; commandBar2.Items.Add( item ); item = new CommandBarButton( Images.Forward, "Forward", new EventHandler( _cmdViewNavForward_Click ) ); _cmdViewNavForward.Image = Images.Forward; commandBar2.Items.Add( item ); commandBarManager1.CommandBars.Add( commandBar2 ); _pic = new ProjectInfoCollection(); _pt = new ProjectTree(); _pic.ProjectRemoved +=new NProf.Glue.Profiler.Project.ProjectInfoCollection.ProjectEventHandler(_pic_ProjectRemoved); _pt.Projects = _pic; _pt.ProjectDoubleClicked += new ProjectTree.ProjectDoubleClickedHandler( _pt_ProjectDoubleClicked ); _pt.RunDoubleClicked += new ProjectTree.RunDoubleClickedHandler( _pt_RunDoubleClicked ); _pt.ExecutablesDropped +=new ProjectTree.ExecutablesDroppedHandler( _pt_ExecutableDropped ); _dock = new Crownwood.Magic.Docking.DockingManager( this, Crownwood.Magic.Common.VisualStyle.IDE ); _dock.OuterControl = commandBarManager1; _dock.InnerControl = _tcProfilers; Crownwood.Magic.Docking.Content c = _dock.Contents.Add( _pt, "Projects" ); Crownwood.Magic.Docking.WindowContent wc = _dock.AddContentWithState( c, Crownwood.Magic.Docking.State.DockLeft ); this.Text = "nprof Profiling Application - v" + Profiler.Version; _tcProfilers.Appearance = Crownwood.Magic.Controls.TabControl.VisualAppearance.MultiDocument; SerializationHandler.DataStoreDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\NProf\\" + Profiler.Version; _cmdFileRecentProjects.MenuCommands.Clear(); int count = 1; foreach(UsedFile usedFile in SerializationHandler.ProjectsHistory) { if(count > 10) break; string label = (count == 10 ? "1&0" : "&" + count.ToString()) + " " + usedFile.ProjectName; Crownwood.Magic.Menus.MenuCommand pInfo = new Crownwood.Magic.Menus.MenuCommand(label); pInfo.Tag = usedFile.FileName; pInfo.Click += new EventHandler(_cmdFileRecentlyUsed_Click); pInfo.Shortcut = Shortcut.CtrlShift1 + (count == 10 ? -1 : count - 1); _cmdFileRecentProjects.MenuCommands.Add(pInfo); ++count; } if( count == 1 ) _cmdFileRecentProjects.Enabled = false; if ( _piInitialProject != null ) { _pic.Add( _piInitialProject ); _pt.SelectProject( _piInitialProject ); _cmdProjectRun_Click( null, null ); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.menuItem1 = new System.Windows.Forms.MenuItem(); this._menuMain = new Crownwood.Magic.Menus.MenuControl(); this._menuFile = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileNew = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileOpen = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileClose = new Crownwood.Magic.Menus.MenuCommand(); this._sep1 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileSave = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileSaveAs = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileSaveAll = new Crownwood.Magic.Menus.MenuCommand(); this._sep2 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileRecentProjects = new Crownwood.Magic.Menus.MenuCommand(); this._sep3 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdFileExit = new Crownwood.Magic.Menus.MenuCommand(); this._menuEdit = new Crownwood.Magic.Menus.MenuCommand(); this._menuProject = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRun = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectStop = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectOptions = new Crownwood.Magic.Menus.MenuCommand(); this._sep4 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRunViewMessages = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRunCopy = new Crownwood.Magic.Menus.MenuCommand(); this._menuView = new Crownwood.Magic.Menus.MenuCommand(); this._cmdViewProjectView = new Crownwood.Magic.Menus.MenuCommand(); this._cmdViewNavBack = new Crownwood.Magic.Menus.MenuCommand(); this._cmdViewNavForward = new Crownwood.Magic.Menus.MenuCommand(); this._menuHelp = new Crownwood.Magic.Menus.MenuCommand(); this._cmdHelpAbout = new Crownwood.Magic.Menus.MenuCommand(); this._tcProfilers = new Crownwood.Magic.Controls.TabControl(); this._sbStatusBar = new System.Windows.Forms.StatusBar(); this._sbpMessage = new System.Windows.Forms.StatusBarPanel(); this.commandBarManager1 = new Reflector.UserInterface.CommandBarManager(); this.commandBar1 = new Reflector.UserInterface.CommandBar(); ((System.ComponentModel.ISupportInitialize)(this._sbpMessage)).BeginInit(); this.SuspendLayout(); // // menuItem1 // this.menuItem1.Index = -1; this.menuItem1.Text = "Close Tab"; // // _menuMain // this._menuMain.AnimateStyle = Crownwood.Magic.Menus.Animation.System; this._menuMain.AnimateTime = 100; this._menuMain.Cursor = System.Windows.Forms.Cursors.Arrow; this._menuMain.Direction = Crownwood.Magic.Common.Direction.Horizontal; this._menuMain.Dock = System.Windows.Forms.DockStyle.Top; this._menuMain.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0))); this._menuMain.HighlightTextColor = System.Drawing.SystemColors.MenuText; this._menuMain.Location = new System.Drawing.Point(0, 0); this._menuMain.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._menuFile, this._menuEdit, this._menuProject, this._menuView, this._menuHelp}); this._menuMain.Name = "_menuMain"; this._menuMain.Size = new System.Drawing.Size(920, 25); this._menuMain.Style = Crownwood.Magic.Common.VisualStyle.IDE; this._menuMain.TabIndex = 0; this._menuMain.TabStop = false; this._menuMain.Text = "menuControl1"; // // _menuFile // this._menuFile.Description = "File"; this._menuFile.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdFileNew, this._cmdFileOpen, this._cmdFileClose, this._sep1, this._cmdFileSave, this._cmdFileSaveAs, this._cmdFileSaveAll, this._sep2, this._cmdFileRecentProjects, this._sep3, this._cmdFileExit}); this._menuFile.Text = "&File"; // // _cmdFileNew // this._cmdFileNew.Description = "New Profiler Project"; this._cmdFileNew.Shortcut = System.Windows.Forms.Shortcut.CtrlN; this._cmdFileNew.Text = "&New..."; this._cmdFileNew.Click += new System.EventHandler(this._cmdFileNew_Click); this._cmdFileNew.Update += new System.EventHandler(this.UpdateMenuItems); // // _cmdFileOpen // this._cmdFileOpen.Description = "Open a profile project"; this._cmdFileOpen.Text = "&Open..."; this._cmdFileOpen.Click += new System.EventHandler(this._cmdFileOpen_Click); // // _cmdFileClose // this._cmdFileClose.Description = "Close the project"; this._cmdFileClose.Text = "&Close"; this._cmdFileClose.Click += new System.EventHandler(this._cmdFileClose_Click); // // _sep1 // this._sep1.Description = "MenuItem"; this._sep1.Text = "-"; // // _cmdFileSave // this._cmdFileSave.Description = "Save the active profiler project"; this._cmdFileSave.Shortcut = System.Windows.Forms.Shortcut.CtrlS; this._cmdFileSave.Text = "&Save"; this._cmdFileSave.Click += new System.EventHandler(this._cmdFileSave_Click); // // _cmdFileSaveAs // this._cmdFileSaveAs.Description = "Save the active profiler project as a specified file name"; this._cmdFileSaveAs.Text = "Save &As..."; this._cmdFileSaveAs.Click += new System.EventHandler(this._cmdFileSaveAs_Click); // // _cmdFileSaveAll // this._cmdFileSaveAll.Description = "Save all open profiler projects"; this._cmdFileSaveAll.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftS; this._cmdFileSaveAll.Text = "Save A&ll"; this._cmdFileSaveAll.Click += new System.EventHandler(this._cmdFileSaveAll_Click); // // _sep2 // this._sep2.Description = "MenuItem"; this._sep2.Text = "-"; // // _cmdFileRecentProjects // this._cmdFileRecentProjects.Description = "Provides a list of the 10 most recently opened projects for easy access"; this._cmdFileRecentProjects.Text = "Recent Projects"; // // _sep3 // this._sep3.Description = "-"; this._sep3.Text = "-"; // // _cmdFileExit // this._cmdFileExit.Description = "Exit the application"; this._cmdFileExit.Shortcut = System.Windows.Forms.Shortcut.AltF4; this._cmdFileExit.Text = "E&xit"; this._cmdFileExit.Click += new System.EventHandler(this._cmdFileExit_Click); // // _menuEdit // this._menuEdit.Description = "Edit"; this._menuEdit.Enabled = false; this._menuEdit.Text = "&Edit"; // // _menuProject // this._menuProject.Description = "Project commands"; this._menuProject.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdProjectRun, this._cmdProjectStop, this._cmdProjectOptions, this._sep4, this._cmdProjectRunViewMessages, this._cmdProjectRunCopy}); this._menuProject.Text = "&Project"; // // _cmdProjectRun // this._cmdProjectRun.Description = "Run the current project"; this._cmdProjectRun.Shortcut = System.Windows.Forms.Shortcut.F5; this._cmdProjectRun.Text = "Start project run"; this._cmdProjectRun.Click += new System.EventHandler(this._cmdProjectRun_Click); this._cmdProjectRun.Update += new System.EventHandler(this.UpdateMenuItems); // // _cmdProjectStop // this._cmdProjectStop.Description = "Stop the running project"; this._cmdProjectStop.Text = "Stop project run"; // // _cmdProjectOptions // this._cmdProjectOptions.Description = "Modify the options for this project"; this._cmdProjectOptions.Shortcut = System.Windows.Forms.Shortcut.F2; this._cmdProjectOptions.Text = "Options..."; this._cmdProjectOptions.Click += new System.EventHandler(this._cmdProjectOptions_Click); this._cmdProjectOptions.Update += new System.EventHandler(this.UpdateMenuItems); // // _sep4 // this._sep4.Description = "-"; this._sep4.Text = "-"; // // _cmdProjectRunViewMessages // this._cmdProjectRunViewMessages.Description = "View the Messages from the current profiler run..."; this._cmdProjectRunViewMessages.Text = "View Run Messages..."; this._cmdProjectRunViewMessages.Click += new System.EventHandler(this._cmdProjectRunViewMessages_Click); // // _cmdProjectRunCopy // this._cmdProjectRunCopy.Description = "Copy the project run data to the clipboard"; this._cmdProjectRunCopy.Text = "Copy Project Run Data"; // // _menuView // this._menuView.Description = "View"; this._menuView.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdViewProjectView, this._cmdViewNavBack, this._cmdViewNavForward}); this._menuView.Text = "&View"; // // _cmdViewProjectView // this._cmdViewProjectView.Description = "Show/hide the project tab"; this._cmdViewProjectView.Text = "Project tab"; this._cmdViewProjectView.Click += new System.EventHandler(this._cmdViewProjectView_Click); this._cmdViewProjectView.Update += new System.EventHandler(this._cmdViewProjectView_Update); // // _cmdViewNavBack // this._cmdViewNavBack.Description = "Navigate Back"; this._cmdViewNavBack.Text = "Back"; this._cmdViewNavBack.Click += new System.EventHandler(this._cmdViewNavBack_Click); // // _cmdViewNavForward // this._cmdViewNavForward.Description = "Navigate Forward"; this._cmdViewNavForward.Text = "Forward"; this._cmdViewNavForward.Click += new System.EventHandler(this._cmdViewNavForward_Click); // // _menuHelp // this._menuHelp.Description = "Help"; this._menuHelp.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdHelpAbout}); this._menuHelp.Text = "&Help"; // // _cmdHelpAbout // this._cmdHelpAbout.Description = "About nprof"; this._cmdHelpAbout.Text = "About nprof..."; this._cmdHelpAbout.Click += new System.EventHandler(this._cmdHelpAbout_Click); // // _tcProfilers // this._tcProfilers.Dock = System.Windows.Forms.DockStyle.Fill; this._tcProfilers.IDEPixelArea = true; this._tcProfilers.Location = new System.Drawing.Point(0, 26); this._tcProfilers.Name = "_tcProfilers"; this._tcProfilers.Size = new System.Drawing.Size(920, 629); this._tcProfilers.TabIndex = 2; this._tcProfilers.ClosePressed += new System.EventHandler(this._tcProfilers_ClosePressed); // // _sbStatusBar // this._sbStatusBar.Location = new System.Drawing.Point(0, 655); this._sbStatusBar.Name = "_sbStatusBar"; this._sbStatusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this._sbpMessage}); this._sbStatusBar.ShowPanels = true; this._sbStatusBar.Size = new System.Drawing.Size(920, 22); this._sbStatusBar.TabIndex = 3; // // _sbpMessage // this._sbpMessage.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this._sbpMessage.Text = "Ready."; this._sbpMessage.Width = 904; // // commandBarManager1 // this.commandBarManager1.Dock = System.Windows.Forms.DockStyle.Top; this.commandBarManager1.Location = new System.Drawing.Point(0, 25); this.commandBarManager1.Name = "commandBarManager1"; this.commandBarManager1.Size = new System.Drawing.Size(920, 1); this.commandBarManager1.TabIndex = 3; this.commandBarManager1.TabStop = false; this.commandBarManager1.Text = "commandBarManager1"; // // commandBar1 // this.commandBar1.Dock = System.Windows.Forms.DockStyle.Top; this.commandBar1.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0))); this.commandBar1.Location = new System.Drawing.Point(0, 64); this.commandBar1.Name = "commandBar1"; this.commandBar1.Size = new System.Drawing.Size(920, 64); this.commandBar1.Style = Reflector.UserInterface.CommandBarStyle.ToolBar; this.commandBar1.TabIndex = 4; this.commandBar1.TabStop = false; this.commandBar1.Text = "commandBar1"; // // ProfilerForm // this.AllowDrop = true; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(920, 677); this.Controls.Add(this._tcProfilers); this.Controls.Add(this.commandBarManager1); this.Controls.Add(this._menuMain); this.Controls.Add(this._sbStatusBar); this.Name = "ProfilerForm"; this.Text = "nprof Profiling Application - Alpha v0.6"; this.Closing += new System.ComponentModel.CancelEventHandler(this.ProfilerForm_Closing); this.Load += new System.EventHandler(this.ProfilerForm_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.ProfilerForm_Layout); ((System.ComponentModel.ISupportInitialize)(this._sbpMessage)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.menuItem1 = new System.Windows.Forms.MenuItem(); this._menuMain = new Crownwood.Magic.Menus.MenuControl(); this._menuFile = new Crownwood.Magic.Menus.MenuCommand(); this._cmdNew = new Crownwood.Magic.Menus.MenuCommand(); this._cmdOpen = new Crownwood.Magic.Menus.MenuCommand(); this._sep1 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdSave = new Crownwood.Magic.Menus.MenuCommand(); this._cmdSaveAll = new Crownwood.Magic.Menus.MenuCommand(); this._sep2 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdExit = new Crownwood.Magic.Menus.MenuCommand(); this._menuEdit = new Crownwood.Magic.Menus.MenuCommand(); this._menuProject = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRun = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectStop = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectOptions = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand5 = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRunViewMessages = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectRunCopy = new Crownwood.Magic.Menus.MenuCommand(); this._menuView = new Crownwood.Magic.Menus.MenuCommand(); this._cmdProjectView = new Crownwood.Magic.Menus.MenuCommand(); this._menuHelp = new Crownwood.Magic.Menus.MenuCommand(); this._cmdHelpAbout = new Crownwood.Magic.Menus.MenuCommand(); this._tcProfilers = new Crownwood.Magic.Controls.TabControl(); this._sbStatusBar = new System.Windows.Forms.StatusBar(); this._sbpMessage = new System.Windows.Forms.StatusBarPanel(); this.menuCommand1 = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand2 = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand3 = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand4 = new Crownwood.Magic.Menus.MenuCommand(); this.menuCommand6 = new Crownwood.Magic.Menus.MenuCommand(); ((System.ComponentModel.ISupportInitialize)(this._sbpMessage)).BeginInit(); this.SuspendLayout(); // // menuItem1 // this.menuItem1.Index = -1; this.menuItem1.Text = "Close Tab"; // // _menuMain // this._menuMain.AnimateStyle = Crownwood.Magic.Menus.Animation.System; this._menuMain.AnimateTime = 100; this._menuMain.Cursor = System.Windows.Forms.Cursors.Arrow; this._menuMain.Direction = Crownwood.Magic.Common.Direction.Horizontal; this._menuMain.Dock = System.Windows.Forms.DockStyle.Top; this._menuMain.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((System.Byte)(0))); this._menuMain.HighlightTextColor = System.Drawing.SystemColors.MenuText; this._menuMain.Location = new System.Drawing.Point(0, 0); this._menuMain.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._menuFile, this._menuEdit, this._menuProject, this._menuView, this._menuHelp }); this._menuMain.Name = "_menuMain"; this._menuMain.Size = new System.Drawing.Size(920, 25); this._menuMain.Style = Crownwood.Magic.Common.VisualStyle.IDE; this._menuMain.TabIndex = 0; this._menuMain.TabStop = false; this._menuMain.Text = "menuControl1"; // // _menuFile // this._menuFile.Description = "File"; this._menuFile.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdNew, this._cmdOpen, this._sep1, this._cmdSave, this._cmdSaveAll, this._sep2, this._cmdExit }); this._menuFile.Text = "&File"; // // _cmdNew // this._cmdNew.Description = "New Profiler Project"; this._cmdNew.Text = "New..."; this._cmdNew.Click += new System.EventHandler(this._cmdNew_Click); // // _cmdOpen // this._cmdOpen.Description = "Open a profile project"; this._cmdOpen.Enabled = false; this._cmdOpen.Text = "Open"; // // _sep1 // this._sep1.Description = "MenuItem"; this._sep1.Text = "-"; // // _cmdSave // this._cmdSave.Description = "Save the active profiler project"; this._cmdSave.Enabled = false; this._cmdSave.Text = "Save"; // // _cmdSaveAll // this._cmdSaveAll.Description = "Save all open profiler projects"; this._cmdSaveAll.Enabled = false; this._cmdSaveAll.Text = "Save All"; // // _sep2 // this._sep2.Description = "MenuItem"; this._sep2.Text = "-"; // // _cmdExit // this._cmdExit.Description = "Exit the application"; this._cmdExit.Text = "E&xit"; this._cmdExit.Click += new System.EventHandler(this._cmdExit_Click); // // _menuEdit // this._menuEdit.Description = "Edit"; this._menuEdit.Enabled = false; this._menuEdit.Text = "&Edit"; // // _menuProject // this._menuProject.Description = "Project commands"; this._menuProject.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdProjectRun, this._cmdProjectStop, this._cmdProjectOptions, this.menuCommand5, this._cmdProjectRunViewMessages, this._cmdProjectRunCopy }); this._menuProject.Text = "&Project"; // // _cmdProjectRun // this._cmdProjectRun.Description = "Run the current project"; this._cmdProjectRun.Text = "Start project run"; this._cmdProjectRun.Click += new System.EventHandler(this._cmdProjectRun_Click); this._cmdProjectRun.Update += new System.EventHandler(this.UpdateProjectItems); // // _cmdProjectStop // this._cmdProjectStop.Description = "Stop the running project"; this._cmdProjectStop.Text = "Stop project run"; // // _cmdProjectOptions // this._cmdProjectOptions.Description = "Modify the options for this project"; this._cmdProjectOptions.Text = "Options..."; this._cmdProjectOptions.Click += new System.EventHandler(this._cmdProjectOptions_Click); this._cmdProjectOptions.Update += new System.EventHandler(this.UpdateProjectItems); // // menuCommand5 // this.menuCommand5.Description = "-"; this.menuCommand5.Text = "-"; // // _cmdProjectRunViewMessages // this._cmdProjectRunViewMessages.Description = "View the Messages from the current profiler run..."; this._cmdProjectRunViewMessages.Text = "View Run Messages..."; this._cmdProjectRunViewMessages.Click += new System.EventHandler(this._cmdProjectRunViewMessages_Click); // // _cmdProjectRunCopy // this._cmdProjectRunCopy.Description = "Copy the project run data to the clipboard"; this._cmdProjectRunCopy.Text = "Copy Project Run Data"; // // _menuView // this._menuView.Description = "View"; this._menuView.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdProjectView }); this._menuView.Text = "&View"; // // _cmdProjectView // this._cmdProjectView.Description = "Show/hide the project tab"; this._cmdProjectView.Text = "Project tab"; this._cmdProjectView.Click += new System.EventHandler(this._cmdProjectView_Click); this._cmdProjectView.Update += new System.EventHandler(this._cmdProjectView_Update); // // _menuHelp // this._menuHelp.Description = "Help"; this._menuHelp.MenuCommands.AddRange(new Crownwood.Magic.Menus.MenuCommand[] { this._cmdHelpAbout }); this._menuHelp.Text = "&Help"; // // _cmdHelpAbout // this._cmdHelpAbout.Description = "About nprof"; this._cmdHelpAbout.Text = "About nprof..."; this._cmdHelpAbout.Click += new System.EventHandler(this._cmdHelpAbout_Click); // // _tcProfilers // this._tcProfilers.Dock = System.Windows.Forms.DockStyle.Fill; this._tcProfilers.IDEPixelArea = true; this._tcProfilers.Location = new System.Drawing.Point(0, 25); this._tcProfilers.Name = "_tcProfilers"; this._tcProfilers.Size = new System.Drawing.Size(920, 630); this._tcProfilers.TabIndex = 2; this._tcProfilers.SelectionChanged += new System.EventHandler(this._tcProfilers_SelectionChanged); this._tcProfilers.ClosePressed += new System.EventHandler(this._tcProfilers_ClosePressed); // // _sbStatusBar // this._sbStatusBar.Location = new System.Drawing.Point(0, 655); this._sbStatusBar.Name = "_sbStatusBar"; this._sbStatusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this._sbpMessage }); this._sbStatusBar.ShowPanels = true; this._sbStatusBar.Size = new System.Drawing.Size(920, 22); this._sbStatusBar.TabIndex = 3; // // _sbpMessage // this._sbpMessage.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this._sbpMessage.Text = "Ready."; this._sbpMessage.Width = 904; // // menuCommand1 // this.menuCommand1.Description = "MenuItem"; // // menuCommand2 // this.menuCommand2.Break = true; this.menuCommand2.Description = "MenuItem"; // // menuCommand3 // this.menuCommand3.Break = true; this.menuCommand3.Description = "MenuItem"; // // menuCommand4 // this.menuCommand4.Description = "MenuItem"; // // menuCommand6 // this.menuCommand6.Description = "MenuItem"; // // ProfilerForm // this.AllowDrop = true; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(920, 677); this.Controls.Add(this._tcProfilers); this.Controls.Add(this._menuMain); this.Controls.Add(this._sbStatusBar); this.Name = "ProfilerForm"; this.Text = "nprof Profiling Application - Alpha v0.6"; this.Closing += new System.ComponentModel.CancelEventHandler(this.ProfilerForm_Closing); this.Load += new System.EventHandler(this.ProfilerForm_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.ProfilerForm_Layout); this.Leave += new System.EventHandler(this.ProfilerForm_Leave); this.Deactivate += new System.EventHandler(this.ProfilerForm_Deactivate); ((System.ComponentModel.ISupportInitialize)(this._sbpMessage)).EndInit(); this.ResumeLayout(false); }
private void SubsystemEditor_CreateGUI(PetriNetDocument pnd, Subsystem ssOwner) { this.pnd = pnd; this.ssOwner = ssOwner; Panel pnlEditorContainer = new Panel(); pnlEditorContainer.AutoScroll = true; pnlEditorContainer.Dock = DockStyle.Fill; this.pneEditor = new PetriNetEditor(pnd, pnd.InstanceCounter); this.pneEditor.AutoScroll = true; this.pneEditor.AutoScrollMinSize = new Size(3000, 3000); this.pneEditor.Size = new Size(3000, 3000); this.pneEditor.Location = new Point(0, 0); this.pneEditor.ContentsChanged += new EventHandler(pneEditor_ContentsChanged); this.pneEditor.SelectedObjectsChanged += new EventHandler(pneEditor_SelectedObjectsChanged); this.pneEditor.PropertiesChanged += new EventHandler(pneEditor_PropertiesChanged); if (this.oDeserializedZoomLevel != null) { this.pneEditor.Zoom = (float)this.oDeserializedZoomLevel; } pnlEditorContainer.Controls.Add(pneEditor); this.Controls.Add(pnlEditorContainer); // Create the object that manages the docking state this.dmDockingManager = new Crownwood.Magic.Docking.DockingManager(this, Crownwood.Magic.Common.VisualStyle.IDE); this.dmDockingManager.InnerControl = pnlEditorContainer; this.dmDockingManager.OuterControl = tbToolBar; Crownwood.Magic.Docking.Content toolbox = dmDockingManager.Contents.Add(this.tbToolBox, "Toolbox", this.ilContent, 1); toolbox.AutoHideSize = new Size(200, 300); toolbox.DisplaySize = new Size(200, 300); toolbox.FloatingSize = new Size(200, 300); Crownwood.Magic.Docking.Content properties = dmDockingManager.Contents.Add(this.piPropertiesInspector, "Properties", this.ilContent, 0); properties.AutoHideSize = new Size(200, 300); properties.DisplaySize = new Size(200, 300); properties.FloatingSize = new Size(200, 300); Crownwood.Magic.Docking.WindowContent wc = dmDockingManager.AddContentWithState(toolbox, Crownwood.Magic.Docking.State.DockLeft); //dmDockingManager.AddContentToWindowContent(notePad2, wc); // Add a new WindowContent to the existing Zone already created this.dmDockingManager.AddContentToZone(properties, wc.ParentZone, 1); this.tbToolBox.EnabledToolbox = true; // Load layout if (File.Exists(Application.StartupPath + "\\layoutSubsystem.config.xml")) { this.dmDockingManager.LoadConfigFromFile(Application.StartupPath + "\\layoutSubsystem.config.xml"); } // Initialize piPropertiesInspector this.piPropertiesInspector.SelectedObjectChanged += new EventHandler(piPropertiesInspector_SelectedObjectChanged); #region Initialize ToolBar control this.tbToolBar.Dock = DockStyle.Top; this.tbToolBar.ButtonSize = new Size(24, 24); this.tbToolBar.ImageList = ilToolBar; this.tbToolBar.ButtonClick += new ToolBarButtonClickEventHandler(tbToolBar_ButtonClick); this.tbToolBar.Appearance = ToolBarAppearance.Flat; this.tbbReset.Enabled = false; this.tbbReset.ImageIndex = 3; this.tbToolBar.Buttons.Add(tbbReset); this.tbbStart.Enabled = false; this.tbbStart.ImageIndex = 4; this.tbToolBar.Buttons.Add(tbbStart); this.tbbPause.Enabled = false; this.tbbPause.ImageIndex = 5; this.tbToolBar.Buttons.Add(tbbPause); this.tbbStop.Enabled = false; this.tbbStop.ImageIndex = 6; this.tbToolBar.Buttons.Add(tbbStop); this.tbbStep.Enabled = false; this.tbbStep.ImageIndex = 7; this.tbToolBar.Buttons.Add(tbbStep); this.tbbSeparator4.Style = ToolBarButtonStyle.Separator; this.tbToolBar.Buttons.Add(tbbSeparator4); this.tbbUndo.ImageIndex = 13; this.tbbUndo.ToolTipText = "Undo"; this.tbbUndo.Style = ToolBarButtonStyle.DropDownButton; this.tbbUndo.DropDownMenu = this.cmUndo; this.tbToolBar.Buttons.Add(tbbUndo); this.tbbRedo.ImageIndex = 14; this.tbbRedo.ToolTipText = "Redo"; this.tbbRedo.Style = ToolBarButtonStyle.DropDownButton; this.tbbRedo.DropDownMenu = this.cmRedo; this.tbToolBar.Buttons.Add(tbbRedo); this.tbbSeparator2.Style = ToolBarButtonStyle.Separator; this.tbToolBar.Buttons.Add(tbbSeparator2); // this.tbbConflicts.ImageIndex = 8; // this.tbbConflicts.Style = ToolBarButtonStyle.ToggleButton; // this.tbToolBar.Buttons.Add(tbbConflicts); // // this.tbbCircularWaits.ImageIndex = 9; // this.tbbCircularWaits.Style = ToolBarButtonStyle.ToggleButton; // this.tbToolBar.Buttons.Add(tbbCircularWaits); // // this.tbbFireable.ImageIndex = 10; // this.tbbFireable.Style = ToolBarButtonStyle.ToggleButton; // this.tbbFireable.Pushed = true; // this.tbToolBar.Buttons.Add(tbbFireable); // // this.tbbFired.ImageIndex = 11; // this.tbbFired.Style = ToolBarButtonStyle.ToggleButton; // this.tbbFired.Pushed = true; // this.tbToolBar.Buttons.Add(tbbFired); // // this.tbbSeparator3.Style = ToolBarButtonStyle.Separator; // this.tbToolBar.Buttons.Add(tbbSeparator3); this.tbbZoom.ImageIndex = 12; this.tbbZoom.Style = ToolBarButtonStyle.DropDownButton; this.tbbZoom.DropDownMenu = this.cmZoom; this.tbToolBar.Buttons.Add(tbbZoom); this.Controls.Add(this.tbToolBar); #endregion // Initialize MenuControl this.mcMenuControl = new Crownwood.Magic.Menus.MenuControl(); this.mcMenuControl.Dock = DockStyle.Top; this.Controls.Add(mcMenuControl); #region Initialize this.mcFile mcFile = new Crownwood.Magic.Menus.MenuCommand("&File"); mcFileExport = new Crownwood.Magic.Menus.MenuCommand("&Export..."); mcFileExport.Shortcut = Shortcut.CtrlE; mcFileExport.Click += new EventHandler(mcFileExport_Click); mcFile.MenuCommands.Add(mcFileExport); mcFileSeparator1 = new Crownwood.Magic.Menus.MenuCommand("-"); mcFile.MenuCommands.Add(mcFileSeparator1); mcFileClose = new Crownwood.Magic.Menus.MenuCommand("&Close"); mcFileClose.Click += new EventHandler(mcFileClose_Click); mcFile.MenuCommands.Add(mcFileClose); this.mcMenuControl.MenuCommands.Add(mcFile); #endregion #region Initialize this.mcEdit mcEdit = new Crownwood.Magic.Menus.MenuCommand("&Edit"); mcEditUndo = new Crownwood.Magic.Menus.MenuCommand("&Undo"); mcEditUndo.Click += new EventHandler(mcEditUndo_Click); mcEditUndo.ImageList = ilMenu; mcEditUndo.ImageIndex = 4; mcEditUndo.Shortcut = Shortcut.CtrlZ; mcEditUndo.Enabled = false; mcEdit.MenuCommands.Add(mcEditUndo); mcEditRedo = new Crownwood.Magic.Menus.MenuCommand("&Redo"); mcEditRedo.Click += new EventHandler(mcEditRedo_Click); mcEditRedo.ImageList = ilMenu; mcEditRedo.ImageIndex = 5; mcEditRedo.Shortcut = Shortcut.CtrlY; mcEditRedo.Enabled = false; mcEdit.MenuCommands.Add(mcEditRedo); mcEditSeparator1 = new Crownwood.Magic.Menus.MenuCommand("-"); mcEdit.MenuCommands.Add(mcEditSeparator1); mcEditCut = new Crownwood.Magic.Menus.MenuCommand("Cu&t"); mcEditCut.Click += new EventHandler(mcEditCut_Click); mcEditCut.ImageList = ilMenu; mcEditCut.ImageIndex = 6; mcEditCut.Shortcut = Shortcut.CtrlX; mcEdit.MenuCommands.Add(mcEditCut); mcEditCopy = new Crownwood.Magic.Menus.MenuCommand("&Copy"); mcEditCopy.Click += new EventHandler(mcEditCopy_Click); mcEditCopy.ImageList = ilMenu; mcEditCopy.ImageIndex = 7; mcEditCopy.Shortcut = Shortcut.CtrlC; mcEdit.MenuCommands.Add(mcEditCopy); mcEditPaste = new Crownwood.Magic.Menus.MenuCommand("&Paste"); mcEditPaste.Click += new EventHandler(mcEditPaste_Click); mcEditPaste.ImageList = ilMenu; mcEditPaste.ImageIndex = 8; mcEditPaste.Shortcut = Shortcut.CtrlV; mcEdit.MenuCommands.Add(mcEditPaste); mcEditDelete = new Crownwood.Magic.Menus.MenuCommand("&Delete"); mcEditDelete.Click += new EventHandler(mcEditDelete_Click); mcEditDelete.ImageList = ilMenu; mcEditDelete.ImageIndex = 9; mcEditDelete.Shortcut = Shortcut.Del; mcEdit.MenuCommands.Add(mcEditDelete); mcEditSeparator2 = new Crownwood.Magic.Menus.MenuCommand("-"); mcEdit.MenuCommands.Add(mcEditSeparator2); mcEditCopyModel = new Crownwood.Magic.Menus.MenuCommand("Copy &model"); mcEditCopyModel.Click += new EventHandler(mcEditCopyModel_Click); mcEditCopyModel.ImageList = ilMenu; //mcEditCopyModel.ImageIndex = 9; //mcEditCopyModel.Shortcut = Shortcut.Del; mcEdit.MenuCommands.Add(mcEditCopyModel); mcEditSeparator3 = new Crownwood.Magic.Menus.MenuCommand("-"); mcEdit.MenuCommands.Add(mcEditSeparator3); mcEditGroup = new Crownwood.Magic.Menus.MenuCommand("&Group"); mcEditGroup.Click += new EventHandler(mcEditGroup_Click); mcEditGroup.ImageList = ilMenu; //mcEditGroup.ImageIndex = 8; mcEditGroup.Shortcut = Shortcut.CtrlG; mcEdit.MenuCommands.Add(mcEditGroup); mcEditSeparator4 = new Crownwood.Magic.Menus.MenuCommand("-"); mcEdit.MenuCommands.Add(mcEditSeparator4); mcEditSelectAll = new Crownwood.Magic.Menus.MenuCommand("Select &All"); mcEditSelectAll.Click += new EventHandler(mcEditSelectAll_Click); mcEditSelectAll.ImageList = ilMenu; mcEditSelectAll.Shortcut = Shortcut.CtrlA; mcEdit.MenuCommands.Add(mcEditSelectAll); this.mcMenuControl.MenuCommands.Add(mcEdit); #endregion #region Initialize this.mcView mcView = new Crownwood.Magic.Menus.MenuCommand("&View"); foreach (Crownwood.Magic.Docking.Content c in this.dmDockingManager.Contents) { Crownwood.Magic.Menus.MenuCommand mc = new Crownwood.Magic.Menus.MenuCommand(c.Title); mc.Image = c.ImageList.Images[c.ImageIndex]; mc.Click += new EventHandler(mcViewContents_Click); mcView.MenuCommands.Add(mc); } this.mcMenuControl.MenuCommands.Add(mcView); #endregion #region Initialize ActionList // Initialize ActionList this.alMenuActionList.ImageList = this.ilMenu; this.aEditUndo.Checked = false; this.aEditUndo.Enabled = false; this.aEditUndo.Hint = null; this.aEditUndo.Shortcut = System.Windows.Forms.Shortcut.CtrlZ; this.aEditUndo.Tag = null; this.aEditUndo.ImageIndex = 4; this.aEditUndo.Text = mcEditUndo.Text; this.aEditUndo.Visible = true; this.aEditUndo.Update += new System.EventHandler(this.aEditUndo_Update); this.alMenuActionList.Actions.Add(this.aEditUndo); this.alMenuActionList.SetAction(this.mcEditUndo, this.aEditUndo); this.aEditRedo.Checked = false; this.aEditRedo.Enabled = false; this.aEditRedo.Hint = null; this.aEditRedo.Shortcut = System.Windows.Forms.Shortcut.CtrlY; this.aEditRedo.Tag = null; this.aEditRedo.ImageIndex = 5; this.aEditRedo.Text = mcEditRedo.Text; this.aEditRedo.Visible = true; this.aEditRedo.Update += new System.EventHandler(this.aEditRedo_Update); this.alMenuActionList.Actions.Add(this.aEditRedo); this.alMenuActionList.SetAction(this.mcEditRedo, this.aEditRedo); this.aEditDelete.Checked = false; this.aEditDelete.Enabled = false; this.aEditDelete.Hint = null; this.aEditDelete.Shortcut = System.Windows.Forms.Shortcut.Del; this.aEditDelete.Tag = null; this.aEditDelete.ImageIndex = 9; this.aEditDelete.Text = mcEditDelete.Text; this.aEditDelete.Visible = true; this.aEditDelete.Update += new System.EventHandler(this.aEditDelete_Update); this.alMenuActionList.Actions.Add(this.aEditDelete); this.alMenuActionList.SetAction(this.mcEditDelete, this.aEditDelete); this.aEditCut.Checked = false; this.aEditCut.Enabled = false; this.aEditCut.Hint = null; this.aEditCut.Shortcut = System.Windows.Forms.Shortcut.CtrlX; this.aEditCut.ImageIndex = 6; this.aEditCut.Tag = null; this.aEditCut.Text = mcEditCut.Text; this.aEditCut.Visible = true; this.aEditCut.Update += new System.EventHandler(this.aEditCut_Update); this.alMenuActionList.Actions.Add(this.aEditCut); this.alMenuActionList.SetAction(this.mcEditCut, this.aEditCut); this.aEditCopy.Checked = false; this.aEditCopy.Enabled = false; this.aEditCopy.Hint = null; this.aEditCopy.Shortcut = System.Windows.Forms.Shortcut.CtrlC; this.aEditCopy.ImageIndex = 7; this.aEditCopy.Tag = null; this.aEditCopy.Text = mcEditCopy.Text; this.aEditCopy.Visible = true; this.aEditCopy.Update += new System.EventHandler(this.aEditCopy_Update); this.alMenuActionList.Actions.Add(this.aEditCopy); this.alMenuActionList.SetAction(this.mcEditCopy, this.aEditCopy); this.aEditPaste.Checked = false; this.aEditPaste.Enabled = false; this.aEditPaste.Hint = null; this.aEditPaste.Shortcut = System.Windows.Forms.Shortcut.CtrlV; this.aEditPaste.ImageIndex = 8; this.aEditPaste.Tag = null; this.aEditPaste.Text = mcEditPaste.Text; this.aEditPaste.Visible = true; this.aEditPaste.Update += new System.EventHandler(this.aEditPaste_Update); this.alMenuActionList.Actions.Add(this.aEditPaste); this.alMenuActionList.SetAction(this.mcEditPaste, this.aEditPaste); this.aEditGroup.Checked = false; this.aEditGroup.Enabled = false; this.aEditGroup.Hint = null; this.aEditGroup.Shortcut = System.Windows.Forms.Shortcut.CtrlG; this.aEditGroup.ImageIndex = 12; this.aEditGroup.Tag = null; this.aEditGroup.Text = mcEditGroup.Text; this.aEditGroup.Visible = true; this.aEditGroup.Update += new System.EventHandler(this.aEditGroup_Update); this.alMenuActionList.Actions.Add(this.aEditGroup); this.alMenuActionList.SetAction(this.mcEditGroup, this.aEditGroup); #endregion // Initialize Undo/Redo context menus this.cmUndo.Popup += new EventHandler(cmUndo_Popup); this.cmRedo.Popup += new EventHandler(cmRedo_Popup); }
private void mcViewContents_Click(object sender, EventArgs e) { Crownwood.Magic.Menus.MenuCommand mc = (Crownwood.Magic.Menus.MenuCommand)sender; this.dmDockingManager.ShowContent(this.dmDockingManager.Contents[mc.Text]); this.dmDockingManager.BringAutoHideIntoView(this.dmDockingManager.Contents[mc.Text]); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainWindow)); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); this.menuItem10 = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.DetailPanel = new System.Windows.Forms.Panel(); this.label12 = new System.Windows.Forms.Label(); this.titleTextBox = new System.Windows.Forms.TextBox(); this.label11 = new System.Windows.Forms.Label(); this.openStateComboBox = new System.Windows.Forms.ComboBox(); this.closeDatePicker = new System.Windows.Forms.DateTimePicker(); this.submitDatePicker = new System.Windows.Forms.DateTimePicker(); this.ownerComboBox = new System.Windows.Forms.ComboBox(); this.newBugButton = new System.Windows.Forms.Button(); this.submitterComboBox = new System.Windows.Forms.ComboBox(); this.IDLabel = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.updateButton = new System.Windows.Forms.Button(); this.addButton = new System.Windows.Forms.Button(); this.label9 = new System.Windows.Forms.Label(); this.descriptionTextBox = new System.Windows.Forms.TextBox(); this.typeComboBox = new System.Windows.Forms.ComboBox(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.productComboBox = new System.Windows.Forms.ComboBox(); this.label6 = new System.Windows.Forms.Label(); this.priorityComboBox = new System.Windows.Forms.ComboBox(); this.milestoneComboBox = new System.Windows.Forms.ComboBox(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.splitter1 = new System.Windows.Forms.Splitter(); this.dbConnection = new System.Data.SqlClient.SqlConnection(); this.statusBar1 = new System.Windows.Forms.StatusBar(); this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel(); this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel(); this.bugListView = new System.Windows.Forms.ListView(); this.ID = new System.Windows.Forms.ColumnHeader(); this.submitter = new System.Windows.Forms.ColumnHeader(); this.submitDate = new System.Windows.Forms.ColumnHeader(); this.owner = new System.Windows.Forms.ColumnHeader(); this.priority = new System.Windows.Forms.ColumnHeader(); this.title = new System.Windows.Forms.ColumnHeader(); this.panel1 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.label15 = new System.Windows.Forms.Label(); this.statusFilterComboBox = new System.Windows.Forms.ComboBox(); this.label14 = new System.Windows.Forms.Label(); this.ownerFilterComboBox = new System.Windows.Forms.ComboBox(); this.label13 = new System.Windows.Forms.Label(); this.submitterFilterComboBox = new System.Windows.Forms.ComboBox(); this.downButton = new System.Windows.Forms.Button(); this.upButton = new System.Windows.Forms.Button(); this.refreshButton = new System.Windows.Forms.Button(); this.menuCommand1 = new Crownwood.Magic.Menus.MenuCommand(); this.inertButton1 = new Crownwood.Magic.Controls.InertButton(); this.DetailPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem3, this.menuItem7, this.menuItem1}); // // menuItem3 // this.menuItem3.Index = 0; this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem5, this.menuItem6, this.menuItem4}); this.menuItem3.Text = "File"; this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); // // menuItem5 // this.menuItem5.Index = 0; this.menuItem5.Text = "&Connect To DB..."; this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click); // // menuItem6 // this.menuItem6.Index = 1; this.menuItem6.Text = "-"; // // menuItem4 // this.menuItem4.Index = 2; this.menuItem4.Text = "E&xit"; this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click); // // menuItem7 // this.menuItem7.Index = 1; this.menuItem7.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem8, this.menuItem9, this.menuItem10}); this.menuItem7.Text = "View"; // // menuItem8 // this.menuItem8.Checked = true; this.menuItem8.Index = 0; this.menuItem8.Text = "Bug List Tools"; this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click); // // menuItem9 // this.menuItem9.Checked = true; this.menuItem9.Index = 1; this.menuItem9.Text = "Bug List"; this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click); // // menuItem10 // this.menuItem10.Checked = true; this.menuItem10.Index = 2; this.menuItem10.Text = "Bug Entry Fields"; this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click); // // menuItem1 // this.menuItem1.Index = 2; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem2}); this.menuItem1.Text = "Help"; // // menuItem2 // this.menuItem2.Index = 0; this.menuItem2.Text = "&About..."; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // DetailPanel // this.DetailPanel.AutoScroll = true; this.DetailPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.DetailPanel.Controls.Add(this.inertButton1); this.DetailPanel.Controls.Add(this.label12); this.DetailPanel.Controls.Add(this.titleTextBox); this.DetailPanel.Controls.Add(this.label11); this.DetailPanel.Controls.Add(this.openStateComboBox); this.DetailPanel.Controls.Add(this.closeDatePicker); this.DetailPanel.Controls.Add(this.submitDatePicker); this.DetailPanel.Controls.Add(this.ownerComboBox); this.DetailPanel.Controls.Add(this.newBugButton); this.DetailPanel.Controls.Add(this.submitterComboBox); this.DetailPanel.Controls.Add(this.IDLabel); this.DetailPanel.Controls.Add(this.label10); this.DetailPanel.Controls.Add(this.updateButton); this.DetailPanel.Controls.Add(this.addButton); this.DetailPanel.Controls.Add(this.label9); this.DetailPanel.Controls.Add(this.descriptionTextBox); this.DetailPanel.Controls.Add(this.typeComboBox); this.DetailPanel.Controls.Add(this.label8); this.DetailPanel.Controls.Add(this.label7); this.DetailPanel.Controls.Add(this.productComboBox); this.DetailPanel.Controls.Add(this.label6); this.DetailPanel.Controls.Add(this.priorityComboBox); this.DetailPanel.Controls.Add(this.milestoneComboBox); this.DetailPanel.Controls.Add(this.label5); this.DetailPanel.Controls.Add(this.label4); this.DetailPanel.Controls.Add(this.label3); this.DetailPanel.Controls.Add(this.label2); this.DetailPanel.Controls.Add(this.label1); this.DetailPanel.Dock = System.Windows.Forms.DockStyle.Top; this.DetailPanel.Location = new System.Drawing.Point(0, 0); this.DetailPanel.Name = "DetailPanel"; this.DetailPanel.Size = new System.Drawing.Size(736, 296); this.DetailPanel.TabIndex = 0; this.DetailPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.DetailPanel_Paint); // // label12 // this.label12.Location = new System.Drawing.Point(8, 8); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(80, 16); this.label12.TabIndex = 33; this.label12.Text = "Title:"; // // titleTextBox // this.titleTextBox.Enabled = false; this.titleTextBox.Location = new System.Drawing.Point(104, 3); this.titleTextBox.Name = "titleTextBox"; this.titleTextBox.Size = new System.Drawing.Size(520, 20); this.titleTextBox.TabIndex = 1; this.titleTextBox.Text = ""; this.titleTextBox.TextChanged += new System.EventHandler(this.titleTextBox_TextChanged); // // label11 // this.label11.Location = new System.Drawing.Point(101, 136); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(40, 16); this.label11.TabIndex = 31; this.label11.Text = "Status:"; // // openStateComboBox // this.openStateComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.openStateComboBox.Enabled = false; this.openStateComboBox.Items.AddRange(new object[] { "OPEN", "CLOSED"}); this.openStateComboBox.Location = new System.Drawing.Point(152, 136); this.openStateComboBox.Name = "openStateComboBox"; this.openStateComboBox.Size = new System.Drawing.Size(152, 21); this.openStateComboBox.TabIndex = 10; this.openStateComboBox.SelectedIndexChanged += new System.EventHandler(this.openStateComboBox_SelectedIndexChanged); // // closeDatePicker // this.closeDatePicker.Enabled = false; this.closeDatePicker.Location = new System.Drawing.Point(424, 32); this.closeDatePicker.Name = "closeDatePicker"; this.closeDatePicker.TabIndex = 3; // // submitDatePicker // this.submitDatePicker.Enabled = false; this.submitDatePicker.Location = new System.Drawing.Point(104, 56); this.submitDatePicker.Name = "submitDatePicker"; this.submitDatePicker.TabIndex = 4; // // ownerComboBox // this.ownerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ownerComboBox.Enabled = false; this.ownerComboBox.Location = new System.Drawing.Point(104, 80); this.ownerComboBox.Name = "ownerComboBox"; this.ownerComboBox.Size = new System.Drawing.Size(200, 21); this.ownerComboBox.TabIndex = 6; // // newBugButton // this.newBugButton.Enabled = false; this.newBugButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.newBugButton.Location = new System.Drawing.Point(520, 184); this.newBugButton.Name = "newBugButton"; this.newBugButton.Size = new System.Drawing.Size(80, 24); this.newBugButton.TabIndex = 13; this.newBugButton.Text = "New Bug"; this.newBugButton.Click += new System.EventHandler(this.button4_Click); // // submitterComboBox // this.submitterComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.submitterComboBox.Enabled = false; this.submitterComboBox.ItemHeight = 13; this.submitterComboBox.Location = new System.Drawing.Point(104, 32); this.submitterComboBox.Name = "submitterComboBox"; this.submitterComboBox.Size = new System.Drawing.Size(200, 21); this.submitterComboBox.TabIndex = 2; // // IDLabel // this.IDLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.IDLabel.Location = new System.Drawing.Point(392, 138); this.IDLabel.Name = "IDLabel"; this.IDLabel.Size = new System.Drawing.Size(280, 16); this.IDLabel.TabIndex = 11; // // label10 // this.label10.Location = new System.Drawing.Point(337, 138); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(24, 16); this.label10.TabIndex = 22; this.label10.Text = "ID#"; // // updateButton // this.updateButton.Enabled = false; this.updateButton.Location = new System.Drawing.Point(520, 248); this.updateButton.Name = "updateButton"; this.updateButton.Size = new System.Drawing.Size(80, 24); this.updateButton.TabIndex = 15; this.updateButton.Text = "Update"; this.updateButton.Click += new System.EventHandler(this.updateButton_Click); // // addButton // this.addButton.Enabled = false; this.addButton.Location = new System.Drawing.Point(520, 216); this.addButton.Name = "addButton"; this.addButton.Size = new System.Drawing.Size(80, 24); this.addButton.TabIndex = 14; this.addButton.Text = "Add"; this.addButton.Click += new System.EventHandler(this.addButton_Click); // // label9 // this.label9.Location = new System.Drawing.Point(8, 136); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(80, 16); this.label9.TabIndex = 19; this.label9.Text = "Description:"; // // descriptionTextBox // this.descriptionTextBox.Enabled = false; this.descriptionTextBox.Location = new System.Drawing.Point(8, 168); this.descriptionTextBox.Multiline = true; this.descriptionTextBox.Name = "descriptionTextBox"; this.descriptionTextBox.Size = new System.Drawing.Size(496, 120); this.descriptionTextBox.TabIndex = 12; this.descriptionTextBox.Text = ""; // // typeComboBox // this.typeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.typeComboBox.Enabled = false; this.typeComboBox.Location = new System.Drawing.Point(424, 104); this.typeComboBox.Name = "typeComboBox"; this.typeComboBox.Size = new System.Drawing.Size(200, 21); this.typeComboBox.TabIndex = 9; // // label8 // this.label8.Location = new System.Drawing.Point(336, 104); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(80, 16); this.label8.TabIndex = 16; this.label8.Text = "Type:"; // // label7 // this.label7.Location = new System.Drawing.Point(8, 104); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(80, 16); this.label7.TabIndex = 15; this.label7.Text = "Product:"; // // productComboBox // this.productComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.productComboBox.Enabled = false; this.productComboBox.Location = new System.Drawing.Point(104, 104); this.productComboBox.Name = "productComboBox"; this.productComboBox.Size = new System.Drawing.Size(200, 21); this.productComboBox.TabIndex = 8; // // label6 // this.label6.Location = new System.Drawing.Point(336, 80); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(80, 16); this.label6.TabIndex = 13; this.label6.Text = "Priority:"; // // priorityComboBox // this.priorityComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.priorityComboBox.Enabled = false; this.priorityComboBox.Location = new System.Drawing.Point(424, 80); this.priorityComboBox.Name = "priorityComboBox"; this.priorityComboBox.Size = new System.Drawing.Size(200, 21); this.priorityComboBox.TabIndex = 7; // // milestoneComboBox // this.milestoneComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.milestoneComboBox.Enabled = false; this.milestoneComboBox.Location = new System.Drawing.Point(424, 56); this.milestoneComboBox.Name = "milestoneComboBox"; this.milestoneComboBox.Size = new System.Drawing.Size(200, 21); this.milestoneComboBox.TabIndex = 5; // // label5 // this.label5.Location = new System.Drawing.Point(336, 56); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(80, 16); this.label5.TabIndex = 8; this.label5.Text = "Milestone:"; // // label4 // this.label4.Location = new System.Drawing.Point(336, 32); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(80, 16); this.label4.TabIndex = 6; this.label4.Text = "Close Date:"; // // label3 // this.label3.Location = new System.Drawing.Point(8, 80); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(80, 16); this.label3.TabIndex = 4; this.label3.Text = "Owner:"; // // label2 // this.label2.Location = new System.Drawing.Point(8, 56); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(80, 16); this.label2.TabIndex = 2; this.label2.Text = "Submit Date:"; // // label1 // this.label1.Location = new System.Drawing.Point(8, 32); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 16); this.label1.TabIndex = 1; this.label1.Text = "Submitter:"; // // splitter1 // this.splitter1.Dock = System.Windows.Forms.DockStyle.Top; this.splitter1.Location = new System.Drawing.Point(0, 296); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(736, 4); this.splitter1.TabIndex = 2; this.splitter1.TabStop = false; // // dbConnection // this.dbConnection.StateChange += new System.Data.StateChangeEventHandler(this.dbConnection_StateChange); // // statusBar1 // this.statusBar1.Location = new System.Drawing.Point(0, 456); this.statusBar1.Name = "statusBar1"; this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.statusBarPanel1, this.statusBarPanel2}); this.statusBar1.ShowPanels = true; this.statusBar1.Size = new System.Drawing.Size(736, 24); this.statusBar1.TabIndex = 3; // // statusBarPanel1 // this.statusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.statusBarPanel1.Text = "Not Connected"; this.statusBarPanel1.Width = 710; // // statusBarPanel2 // this.statusBarPanel2.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.statusBarPanel2.Width = 10; // // bugListView // this.bugListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.ID, this.submitter, this.submitDate, this.owner, this.priority, this.title}); this.bugListView.Dock = System.Windows.Forms.DockStyle.Fill; this.bugListView.FullRowSelect = true; this.bugListView.HideSelection = false; this.bugListView.Location = new System.Drawing.Point(0, 0); this.bugListView.MultiSelect = false; this.bugListView.Name = "bugListView"; this.bugListView.Size = new System.Drawing.Size(736, 156); this.bugListView.TabIndex = 16; this.bugListView.View = System.Windows.Forms.View.Details; this.bugListView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.bugListView_MouseDown); this.bugListView.ItemActivate += new System.EventHandler(this.bugListView_SelectedIndexChanged); this.bugListView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.bugListView_ColumnClick); this.bugListView.SelectedIndexChanged += new System.EventHandler(this.bugListView_SelectedIndexChanged); // // ID // this.ID.Text = "ID"; this.ID.Width = 215; // // submitter // this.submitter.Text = "Submitter"; this.submitter.Width = 88; // // submitDate // this.submitDate.Text = "Submit Date"; this.submitDate.Width = 134; // // owner // this.owner.Text = "Owner"; this.owner.Width = 80; // // priority // this.priority.Text = "Priority"; this.priority.Width = 48; // // title // this.title.Text = "Title"; this.title.Width = 417; // // panel1 // this.panel1.Controls.Add(this.panel2); this.panel1.Controls.Add(this.bugListView); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 300); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(736, 156); this.panel1.TabIndex = 4; // // panel2 // this.panel2.AutoScroll = true; this.panel2.Controls.Add(this.groupBox1); this.panel2.Controls.Add(this.downButton); this.panel2.Controls.Add(this.upButton); this.panel2.Controls.Add(this.refreshButton); this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel2.Location = new System.Drawing.Point(0, 114); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(736, 42); this.panel2.TabIndex = 0; // // groupBox1 // this.groupBox1.Controls.Add(this.label15); this.groupBox1.Controls.Add(this.statusFilterComboBox); this.groupBox1.Controls.Add(this.label14); this.groupBox1.Controls.Add(this.ownerFilterComboBox); this.groupBox1.Controls.Add(this.label13); this.groupBox1.Controls.Add(this.submitterFilterComboBox); this.groupBox1.Location = new System.Drawing.Point(200, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(488, 40); this.groupBox1.TabIndex = 10; this.groupBox1.TabStop = false; this.groupBox1.Text = "Filters"; // // label15 // this.label15.Location = new System.Drawing.Point(329, 18); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(40, 16); this.label15.TabIndex = 15; this.label15.Text = "Status:"; // // statusFilterComboBox // this.statusFilterComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.statusFilterComboBox.Location = new System.Drawing.Point(377, 14); this.statusFilterComboBox.Name = "statusFilterComboBox"; this.statusFilterComboBox.Size = new System.Drawing.Size(96, 21); this.statusFilterComboBox.TabIndex = 14; this.statusFilterComboBox.SelectedIndexChanged += new System.EventHandler(this.statusFilterComboBox_SelectedIndexChanged); // // label14 // this.label14.Location = new System.Drawing.Point(176, 17); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(48, 16); this.label14.TabIndex = 13; this.label14.Text = "Owner:"; // // ownerFilterComboBox // this.ownerFilterComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ownerFilterComboBox.Location = new System.Drawing.Point(226, 14); this.ownerFilterComboBox.Name = "ownerFilterComboBox"; this.ownerFilterComboBox.Size = new System.Drawing.Size(96, 21); this.ownerFilterComboBox.TabIndex = 12; this.ownerFilterComboBox.SelectedIndexChanged += new System.EventHandler(this.ownerFilterComboBox_SelectedIndexChanged); // // label13 // this.label13.Location = new System.Drawing.Point(16, 17); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(56, 16); this.label13.TabIndex = 11; this.label13.Text = "Submitter: "; // // submitterFilterComboBox // this.submitterFilterComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.submitterFilterComboBox.Location = new System.Drawing.Point(72, 14); this.submitterFilterComboBox.Name = "submitterFilterComboBox"; this.submitterFilterComboBox.Size = new System.Drawing.Size(96, 21); this.submitterFilterComboBox.TabIndex = 10; this.submitterFilterComboBox.SelectedIndexChanged += new System.EventHandler(this.submitterFilterComboBox_SelectedIndexChanged); // // downButton // this.downButton.Image = ((System.Drawing.Image)(resources.GetObject("downButton.Image"))); this.downButton.Location = new System.Drawing.Point(152, 10); this.downButton.Name = "downButton"; this.downButton.Size = new System.Drawing.Size(32, 24); this.downButton.TabIndex = 2; this.downButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.downButton.Click += new System.EventHandler(this.downButton_Click); // // upButton // this.upButton.Image = ((System.Drawing.Image)(resources.GetObject("upButton.Image"))); this.upButton.Location = new System.Drawing.Point(112, 10); this.upButton.Name = "upButton"; this.upButton.Size = new System.Drawing.Size(32, 24); this.upButton.TabIndex = 1; this.upButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.upButton.Click += new System.EventHandler(this.upButton_Click); // // refreshButton // this.refreshButton.Image = ((System.Drawing.Image)(resources.GetObject("refreshButton.Image"))); this.refreshButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.refreshButton.Location = new System.Drawing.Point(7, 10); this.refreshButton.Name = "refreshButton"; this.refreshButton.Size = new System.Drawing.Size(89, 24); this.refreshButton.TabIndex = 0; this.refreshButton.Text = "Refresh List"; this.refreshButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click); // // menuCommand1 // this.menuCommand1.Description = "MenuItem"; // // inertButton1 // this.inertButton1.Location = new System.Drawing.Point(632, 200); this.inertButton1.Name = "inertButton1"; this.inertButton1.Size = new System.Drawing.Size(56, 32); this.inertButton1.TabIndex = 34; this.inertButton1.Text = "inertButton1"; // // MainWindow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.AutoScroll = true; this.ClientSize = new System.Drawing.Size(736, 480); this.Controls.Add(this.panel1); this.Controls.Add(this.statusBar1); this.Controls.Add(this.splitter1); this.Controls.Add(this.DetailPanel); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mainMenu1; this.Name = "MainWindow"; this.Text = "BugTracker"; this.Load += new System.EventHandler(this.MainWindow_Load); this.Activated += new System.EventHandler(this.MainWindow_Activated); this.DetailPanel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit(); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }