상속: System.Windows.Forms.UserControl
예제 #1
0
        public Control.PixelLight1D AddNewRope(string name, int pixels)
        {
            int scale = 4;

            var moduleControl = new Control.ModuleControl();

            moduleControl.Text = name;
            moduleControl.Size = new System.Drawing.Size(scale * pixels + 6, 40);

            var control = new Control.PixelLight1D(scale);

            moduleControl.ChildControl = control;

            flowLayoutPanelLights.Controls.Add(moduleControl);

            return(control);
        }
예제 #2
0
        public Control.PixelLight1D AddNewRope(string name, int pixels)
        {
            int scale = 4;

            var moduleControl = new Control.ModuleControl();
            moduleControl.Text = name;
            moduleControl.Size = new System.Drawing.Size(scale * pixels + 6, 40);

            var control = new Control.PixelLight1D(scale);
            moduleControl.ChildControl = control;

            flowLayoutPanelLights.Controls.Add(moduleControl);

            return control;
        }