C# Class XCore.TestControlBase

Test class that implements WndProc by noting start and finish, and possibly making recursive calls.
Inheritance: System.Windows.Forms.Control
Show file Open project: sillsdev/FieldWorks

Public Properties

Property Type Description
m_messages System.Collections.ArrayList

Public Methods

Method Description
CallOnPaint ( PaintEventArgs e ) : void

allow protected method to be called by test code

CallWndProc ( Message &m ) : void

allow protected method to be called by test code

TestControlBase ( ) : System

Protected Methods

Method Description
Dispose ( bool release_all ) : void
OnPaint ( PaintEventArgs e ) : void

Fake OnPaint notes order things happen.

RunPendingMessages ( object original ) : void

Override to simulate recursive calls to WndProc.

WndProc ( Message &m ) : void

Fake WndProc notes order things happen.

Method Details

CallOnPaint() public method

allow protected method to be called by test code
public CallOnPaint ( PaintEventArgs e ) : void
e System.Windows.Forms.PaintEventArgs
return void

CallWndProc() public method

allow protected method to be called by test code
public CallWndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void

Dispose() protected method

protected Dispose ( bool release_all ) : void
release_all bool
return void

OnPaint() protected method

Fake OnPaint notes order things happen.
protected OnPaint ( PaintEventArgs e ) : void
e System.Windows.Forms.PaintEventArgs
return void

RunPendingMessages() protected method

Override to simulate recursive calls to WndProc.
protected RunPendingMessages ( object original ) : void
original object
return void

TestControlBase() public method

public TestControlBase ( ) : System
return System

WndProc() protected method

Fake WndProc notes order things happen.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void

Property Details

m_messages public property

public for test purposes
public ArrayList,System.Collections m_messages
return System.Collections.ArrayList