/// <summary> /// The completely specified constructor /// </summary> /// <param name="parent"></param> /// A Parent to be assigned to the control /// <param name="pbox"></param> /// PictureBox Control /// <param name="image"></param> /// The BitMapped file or resource /// <param name="color"></param> /// LED_COLOR.RED /// LED_COLOR.GREEN /// LED_COLOR.YELLOW /// LED_COLOR.BLUE /// <param name="state"></param> /// LED_STATE.ON /// LED_STATE.OFF /// LED_STATE.DISABLED /// <param name="type"></param> /// LED_TYPE.ROUND /// LED_TYPE.SQUARE public PictureBoxLED(System.Windows.Forms.Control parent, PictureBox pbox, Bitmap image, LED16x16.LED_COLOR color, LED16x16.LED_STATE state, LED16x16.LED_TYPE type) { thePbox = pbox; base.Parent = parent; theLED = new LED16x16(image); theLED.m_nLedColor = color; theLED.m_nLedMode = state; theLED.m_nLedShape = type; theLED.BlinkRate = 0.0f; // register the handler with the LED so it can be called // when the LED is re-drawn // Must register before .LedDraw() since // that fires the event. theLED.LedChanged += new ChangedLEDEventHandler(BlinkDemoHandler); if (theLED.ledimage == null) { pbox.Dispose(); } else { theLED.LedDraw(); } }
internal LEDEventArgs() { lstate = LED16x16.LED_STATE.INVALID; }
internal LEDEventArgs(LED16x16.LED_STATE ledstate) { lstate = ledstate; }