public LBLed() { InitializeComponent(); this.Size = new Size(20, 20); this.ledColor = Color.Red; this.state = LBLed.LedState.Off; this.style = LBLed.LedStyle.Circular; this.blinkIsOn = false; this.ledSize = new SizeF ( 10F, 10F ); this.labelPosition = LedLabelPosition.Top; }
public LBLed() { InitializeComponent(); this.Size = new Size(20, 20); this.ledColor = Color.Red; this.state = LBLed.LedState.Off; this.style = LBLed.LedStyle.Circular; this.blinkIsOn = false; this.ledSize = new SizeF(10F, 10F); this.labelPosition = LedLabelPosition.Top; }
public HMILed() { InitializeComponent(); this.tmrBlink = new Timer(); this.tmrBlink.Tick += this.OnBlink; this.Size = new Size(20, 20); this.ledColor = Color.Red; this.state = HMILed.LedState.Off; this.style = HMILed.LedStyle.Circular; this.blinkIsOn = false; this.ledSize = new SizeF(10F, 10F); this.labelPosition = LedLabelPosition.Top; }
public HTLed() { InitializeComponent(); this.Size = new Size(20, 20); this.ledColor = Color.Red; this.state = HTLed.LedState.Off; this.style = HTLed.LedStyle.Circular; this.blinkIsOn = false; this.ledSize = new SizeF(10F, 10F); this.labelPosition = LedLabelPosition.Top; //data subjection RunningServer server = RunningServer.getServer(); server.Connected += OnConnected; }
public LBLed() { InitializeComponent(); this.Size = new Size(80, 80); this.ledColor = Color.Red; this.ledOffColor = Color.Gray; this.state = LBLed.ledState.Blink; this.style = LBLed.LedStyle.Circular; this.blinkIsOn = false; this.ledSize = new SizeF(50F, 50F); this.labelPosition = LedLabelPosition.Top; this.blinkIsOn = true; this.tmrBlink.Interval = this.BlinkInterval; this.tmrBlink.Start(); }
public LBLed() { InitializeComponent(); // Set the styles for drawing SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.DoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); // Transparent background this.BackColor = Color.Transparent; this.ledColor = Color.Red; this.state = LBLed.LedState.Off; this.blinkIsOn = false; this.ledSize = new SizeF(10F, 10F); this.labelPosition = LedLabelPosition.Top; this.defaultRenderer = new LBLedRenderer(); this.defaultRenderer.Led = this; }
public LBLed() { InitializeComponent(); // Set the styles for drawing SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.DoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); // Transparent background this.BackColor = Color.Transparent; this.ledColor = Color.Red; this.state = LBLed.LedState.Off; this.blinkIsOn = false; this.ledSize = new SizeF ( 10F, 10F ); this.labelPosition = LedLabelPosition.Top; this.defaultRenderer = new LBLedRenderer(); this.defaultRenderer.Led = this; }