private void makemenus() { ExtendedStatusStrip = new ExtendedStatusStrip(); MainMenu = new MainMenu(this, new MenuData("File", "New", "Open", "Seperator", "Close", "Seperator", "Save", "Save As", "Seperator", "Quit"), new MenuData("Edit", "Start", "Stop", "Reset", "Seperator", "Next Step"), new MenuData("Help", "About")); TaskMenu = new TaskMenu(this, "Start", "Stop", "Reset", "Seperator", "Next Step", "Seperator", "Zoom In", "Zoom Out", "Seperator", "Show Parameters", "Show Simulation", "Show Statistics", "Full Screen"); (TaskMenu.GetToolStripItem("Show Parameters")).ForeColor = Color.Green; (TaskMenu.GetToolStripItem("Show Simulation")).ForeColor = Color.Green; (TaskMenu.GetToolStripItem("Show Statistics")).ForeColor = Color.Green; ExtendedStatusStrip.Set(); MainMenuStrip = MainMenu; Controls.Add(ExtendedStatusStrip); Controls.Add(TaskMenu); Controls.Add(MainMenu); }
private void makemenus() { MainMenu = new MainMenu(this, new MenuData("File", "Close", "Save", "Save As"), new MenuData("Edit", "Start", "Stop", "Reset", "Next Step")); TaskMenu = new TaskMenu(this, "Start", "Stop", "Reset", "Next Step", "Zoom In", "Zoom Out"); MainMenu.GetToolStripItem("Stop").Enabled = false; TaskMenu.GetToolStripItem("Stop").Enabled = false; }