C# Class LgLcd.WinFormsApplet

Very generic applet based on a UserControl. The implementer can simply use the Designer to generate a UserControl which using WinFormsApplet's functionality gets rendered off-screen and pushed to the device. Use needs to override the UpdateLcdScreen event and invoke it whenever the screen needs to be repainted.
Inheritance: System.Windows.Forms.UserControl, IApplet
Mostra file Open project: zzattack/Logitech-LCD

Protected Properties

Property Type Description
Device Device

Public Methods

Method Description
Connect ( string friendlyName, bool autostartable, AppletCapabilities appletCaps ) : void
Disconnect ( ) : void
OnAppletDisabled ( ) : void
OnAppletEnabled ( ) : void
OnCloseConnection ( ) : void
OnConfigure ( ) : void
OnDeviceArrival ( DeviceType deviceType ) : void
OnDeviceRemoval ( DeviceType deviceType ) : void

Protected Methods

Method Description
InitializeApplet ( ) : void
WinFormsApplet ( ) : System
WinFormsApplet_UpdateLcdScreen ( object sender, EventArgs e ) : void

Private Methods

Method Description
DrawToBitmap2 ( ) : void

somewhat faster version of DrawToBitmap, directly specifying a DC to the bitmap instead of generating a compatible one and then blitting

SendMessage ( HandleRef hWnd, int msg, IntPtr wParam, IntPtr lParam ) : IntPtr

Method Details

Connect() public method

public Connect ( string friendlyName, bool autostartable, AppletCapabilities appletCaps ) : void
friendlyName string
autostartable bool
appletCaps AppletCapabilities
return void

Disconnect() public method

public Disconnect ( ) : void
return void

InitializeApplet() protected method

protected InitializeApplet ( ) : void
return void

OnAppletDisabled() public method

public OnAppletDisabled ( ) : void
return void

OnAppletEnabled() public method

public OnAppletEnabled ( ) : void
return void

OnCloseConnection() public method

public OnCloseConnection ( ) : void
return void

OnConfigure() public method

public OnConfigure ( ) : void
return void

OnDeviceArrival() public method

public OnDeviceArrival ( DeviceType deviceType ) : void
deviceType DeviceType
return void

OnDeviceRemoval() public method

public OnDeviceRemoval ( DeviceType deviceType ) : void
deviceType DeviceType
return void

WinFormsApplet() protected method

protected WinFormsApplet ( ) : System
return System

WinFormsApplet_UpdateLcdScreen() protected method

protected WinFormsApplet_UpdateLcdScreen ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Property Details

Device protected_oe property

protected Device,LgLcd Device
return Device