public static void CreateLedRound(CompLedRound Component, int Left, int Top, Helper.CompLedRound.LEDType LedType) { komCounter++; string compName = "ledRoundDyn_" + komCounter; Component.Left = Left; Component.Top = Top; Component.Margin = new System.Windows.Forms.Padding(4); Component.Name = compName; Component.Size = new System.Drawing.Size(25, 25); Component.State = Helper.CompLedRectangle.CompLedState.LedOff; Component.Type = LedType; }
protected CompLedRound CreateLedRound(int left, int top, Control parent, Helper.CompLedRound.LEDType ledType = CompLedRound.LEDType.Normal) { int width = 25; int height = 25; CompLedRound comp_led_round = null; comp_led_round = new Helper.CompLedRound(); comp_led_round.SetBounds(left, top, width, height); comp_led_round.Type = ledType; comp_led_round.Name = this.m_formularManager.GetDynamicControlName("compLedRound"); parent.Controls.Add(comp_led_round); return(comp_led_round); }