Ejemplo n.º 1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            // no smaller than design time size
            this.MinimumSize = new System.Drawing.Size(this.Width, this.Height);

            // no larger than screen size
            this.MaximumSize = new System.Drawing.Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);

            //this.AutoSize = true;
            //this.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            //this.Dock = DockStyle.Fill;

            panel1.Anchor = AnchorStyles.Right;


            JCS.ToggleSwitch ModernStyleToggleSwitch;

            ModernStyleToggleSwitch          = new JCS.ToggleSwitch();
            ModernStyleToggleSwitch.Location = new System.Drawing.Point(626, 188);
            ModernStyleToggleSwitch.Name     = "ModernStyleToggleSwitch";
            ModernStyleToggleSwitch.OffFont  = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            ModernStyleToggleSwitch.OnFont   = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            ModernStyleToggleSwitch.Size     = new System.Drawing.Size(50, 19);
            ModernStyleToggleSwitch.TabIndex = 14;

            Controls.Add(ModernStyleToggleSwitch);
            pdeGraph.SetPlayPanelInvisible();
            GraphDraw();
            UpdateColorSchemaMenu();
        }
Ejemplo n.º 2
0
 internal void SetToggleSwitch(ToggleSwitch toggleSwitch)
 {
     _toggleSwitch = toggleSwitch;
 }