Example #1
0
        public Plot_ToolStripContainer()
        {
            this.Plot_Container = new Plot_SplitContainer();
            this.ToolStrip_Plot = new Plot_ToolStrip();
            this.ToolStripDropDownButton_Plot = new Plot_ToolStripDropDownButton();
            this.ToolStripDropDownButton_View = new View_ToolStripDropDownButton();

            this.SuspendLayout();
            this.Plot_Container.SuspendLayout();
            this.ToolStrip_Plot.SuspendLayout();

            this.LeftToolStripPanelVisible   = false;
            this.RightToolStripPanelVisible  = false;
            this.BottomToolStripPanelVisible = false;

            this.Plot_Container.Dock = DockStyle.Fill;
            this.ContentPanel.Controls.Add(Plot_Container);

            this.ToolStrip_Plot.Attach(ToolStripDropDownButton_Plot, ToolStripDropDownButton_View);

            this.TopToolStripPanel.Controls.Add(ToolStrip_Plot);

            // Event
            this.ToolStripDropDownButton_Plot.Plot_Chosen += ToolStripDropDownButton_Plot_Chosen;;
            //
            this.ToolStrip_Plot.ResumeLayout(true);
            this.Plot_Container.ResumeLayout(true);
            this.ResumeLayout(true);

            ToolStripDropDownButton_View.optionsPlotToolStripMenuItem.Click += OptionsPlotToolStripMenuItem_Click;
        }
Example #2
0
 public void Attach(Plot_ToolStripDropDownButton plot_button, View_ToolStripDropDownButton view_button)
 {
     this.Items.AddRange(new ToolStripItem[]
     {
         plot_button,
         this.toolStripSeparator1,
         view_button
     });
 }