Exemple #1
0
 private void AddController(string configuration)
 {
     RGBLEDController controller;
     this.panelContainer.Controls.Add(controller = new RGBLEDController(this.panelContainer.Controls.Count + 1));
     controller.Dock = DockStyle.Top;
     controller.IndexChange += new RGBLEDController.OnIndexChange(this.controller_IndexChange);
     controller.Configuration = configuration;
     this.panelContainer.Controls.SetChildIndex(controller, 0);
 }
Exemple #2
0
        private void AddController(string configuration)
        {
            RGBLEDController controller;

            this.panelContainer.Controls.Add(controller = new RGBLEDController(this.panelContainer.Controls.Count + 1));
            controller.Dock          = DockStyle.Top;
            controller.IndexChange  += new RGBLEDController.OnIndexChange(this.controller_IndexChange);
            controller.Configuration = configuration;
            this.panelContainer.Controls.SetChildIndex(controller, 0);
        }