Exemplo n.º 1
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;
        }
Exemplo n.º 2
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;
        }