public override void AddButtonsToToolBar() { base.AddButtonsToToolBar(); //QuickStart QuickStart = new ToolStripDropDownButton(); base.MenuBar.Items.Add(QuickStart); QuickStart.Text = "Startup"; Parameters = new ToolStripDropDownButton("Parameters", Properties.Resources.Pace_Parameters); QuickStart.DropDownItems.Add(Parameters); ToolStripDropDownButton FromRaceData = new ToolStripDropDownButton("From Race Data"); Parameters.DropDownItems.Add(FromRaceData); FromRaceData.AutoSize = true; for (int trackIndex = 0; trackIndex < Data.NumberOfTracks; trackIndex++) { RaceDropDown button = new RaceDropDown(trackIndex); FromRaceData.DropDownItems.Add(button); button.ButtonClicked += RaceIndexSelected; } ToolStripButton FromFile = new ToolStripButton("From File"); Parameters.DropDownItems.Add(FromFile); FromFile.Click += FromFile_Click; Strategies = new ToolStripDropDownButton("Strategies", Properties.Resources.Strategies); Strategies.Visible = false; QuickStart.DropDownItems.Add(Strategies); ToolStripButton StrategiesFromFile = new ToolStripButton("From File"); Strategies.DropDownItems.Add(StrategiesFromFile); StrategiesFromFile.Click += StrategiesFromFile_Click; ToolStripButton StrategiesFromData = new ToolStripButton("From Pace Data"); Strategies.DropDownItems.Add(StrategiesFromData); StrategiesFromData.Click += StrategiesFromData_Click; Race = new ToolStripButton("Race", Properties.Resources.Race); Race.Visible = false; Race.Click += Race_Click; QuickStart.DropDownItems.Add(Race); Archives = new ToolStripButton("Archives", Properties.Resources.Archives); Archives.Click += ArchivesReady; QuickStart.DropDownItems.Add(Archives); ToolStripButton DataInput = new ToolStripButton("Input Data", Properties.Resources.Input); DataInput.Click += DataInput_Click; QuickStart.DropDownItems.Add(DataInput); //Finish Quickstart //Open Windows ToolStripButton tempButton; OpenWindows = new ToolStripDropDownButton(); OpenWindows.Text = "Open Windows"; base.MenuBar.Items.Add(OpenWindows); //Adds the buttons and event handlers for all panels that could be opened by the user tempButton = new ToolStripButton("Info", Properties.Resources.Info); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowInfoPanel(base.Form); Info = tempButton; OpenWindows.DropDownItems.Add(Info); tempButton = new ToolStripButton("Settings", Properties.Resources.Settings); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowSettingsPanel(base.Form); Settings = tempButton; OpenWindows.DropDownItems.Add(Settings); tempButton = new ToolStripButton("Main", Properties.Resources.Main); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowContentTabControl(base.Form); Main = tempButton; OpenWindows.DropDownItems.Add(Main); tempButton = new ToolStripButton("Data Input", Properties.Resources.Input); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowDataInput(base.Form); DataInput = tempButton; OpenWindows.DropDownItems.Add(DataInput); tempButton = new ToolStripButton("Parameter Viewer", Properties.Resources.Pace_Parameters); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowPaceParameters(base.Form); ParameterViewer = tempButton; OpenWindows.DropDownItems.Add(ParameterViewer); tempButton = new ToolStripButton("Strategy Viewer", Properties.Resources.Strategies); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowStrategies(base.Form); StrategyViewer = tempButton; OpenWindows.DropDownItems.Add(StrategyViewer); tempButton = new ToolStripButton("Archives", Properties.Resources.Archives); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowArchives(base.Form); ArchiveViewer = tempButton; OpenWindows.DropDownItems.Add(ArchiveViewer); tempButton = new ToolStripButton("Graph", Properties.Resources.Graph); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowGraph(base.Form); Graph = tempButton; OpenWindows.DropDownItems.Add(Graph); tempButton = new ToolStripButton("Axes", Properties.Resources.Axes); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowAxes(base.Form); Axes = tempButton; OpenWindows.DropDownItems.Add(Axes); tempButton = new ToolStripButton("Drivers", Properties.Resources.Driver_Select); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowDriverSelectPanel(base.Form); DriverViewer = tempButton; OpenWindows.DropDownItems.Add(DriverViewer); tempButton = new ToolStripButton("Race", Properties.Resources.Race); tempButton.AutoSize = true; tempButton.Click += (s, e) => PanelControlEvents.OnShowRacePanel(base.Form); RaceViewer = tempButton; OpenWindows.DropDownItems.Add(RaceViewer); //Finish Windows //Version info VersionInfo = new ToolStripButton(); VersionInfo.Text = "Version"; VersionInfo.Click += VersionInfo_Click; base.MenuBar.Items.Add(VersionInfo); //Finish version info //Instructions Instructions = new ToolStripButton(); Instructions.Text = "Instructions"; Instructions.Click += Instructions_Click; base.MenuBar.Items.Add(Instructions); }