/// <summary> /// Creates the additional controls, like the options button and the collapse button /// </summary> public void CreateAdditionalControls() { if (optionsButton == null) { optionsButton = new NaviButtonOptions(); optionsButton.Small = true; optionsButton.Click += new EventHandler(optionsButton_Click); } if (collapseButton == null) { collapseButton = new NaviButtonCollapse(); collapseButton.Size = new Size(18, 18); collapseButton.Name = "navigationBarCollapseButton1"; collapseButton.Click += new EventHandler(collapseButton_Click); } if (collapsedBand == null) { collapsedBand = new NaviBandCollapsed(); collapsedBand.Name = "navigationBarBar.CollapsedBand1"; collapsedBand.Visible = false; collapsedBand.MouseUp += new MouseEventHandler(CollapsedBand_MouseUp); } InitializeMenu(); if (!Bar.Controls.Contains(optionsButton)) { Bar.Controls.Add(optionsButton); } if (!Bar.Controls.Contains(collapseButton)) { Bar.Controls.Add(collapseButton); } if (!Bar.Controls.Contains(collapsedBand)) { Bar.Controls.Add(collapsedBand); } }
/// <summary> /// Creates the additional controls, like the options button and the collapse button /// </summary> public void CreateAdditionalControls() { if (optionsButton == null) { optionsButton = new NaviButtonOptions(); optionsButton.Small = true; optionsButton.Click += new EventHandler(optionsButton_Click); } if (collapseButton == null) { collapseButton = new NaviButtonCollapse(); collapseButton.Size = new Size(18, 18); collapseButton.Name = "navigationBarCollapseButton1"; collapseButton.Click += new EventHandler(collapseButton_Click); } if (collapsedBand == null) { collapsedBand = new NaviBandCollapsed(); collapsedBand.Name = "navigationBarBar.CollapsedBand1"; collapsedBand.Visible = false; collapsedBand.MouseUp += new MouseEventHandler(CollapsedBand_MouseUp); } InitializeMenu(); if (!Bar.Controls.Contains(optionsButton)) Bar.Controls.Add(optionsButton); if (!Bar.Controls.Contains(collapseButton)) Bar.Controls.Add(collapseButton); if (!Bar.Controls.Contains(collapsedBand)) Bar.Controls.Add(collapsedBand); }