Esempio 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;
        }
Esempio 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;
        }