Example #1
0
        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;
        }
Example #2
0
        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;
        }
Example #3
0
 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;
 }
Example #4
0
        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;
        }
Example #5
0
        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();
        }
Example #6
0
        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;
        }
Example #7
0
        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;
        }