C# Class Animatroller.Simulator.Control.Bulb.SimpleBulb

The LEDBulb is a .Net control for Windows Forms that emulates an LED light with two states On and Off. The purpose of the control is to provide a sleek looking representation of an LED light that is sizable, has a transparent background and can be set to different colors.
Inheritance: System.Windows.Forms.Control
显示文件 Open project: HakanL/animatroller

Private Properties

Property Type Description
drawControl void

Public Methods

Method Description
SimpleBulb ( ) : System

Protected Methods

Method Description
OnMove ( EventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Handles the Paint event for this UserControl

OnPaintBackground ( PaintEventArgs e ) : void

Private Methods

Method Description
drawControl ( Graphics g ) : void

Renders the control to an image

Method Details

OnMove() protected method

protected OnMove ( EventArgs e ) : void
e System.EventArgs
return void

OnPaint() protected method

Handles the Paint event for this UserControl
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void

SimpleBulb() public method

public SimpleBulb ( ) : System
return System