C# Class InstallPad.ControlList

ファイルを表示 Open project: philc/InstallPad Class Usage Examples

Public Methods

Method Description
AddAll ( List controls ) : void

Add many controls at once. Improves drawing performance slightly.

AddControl ( Control control ) : void

When a control is added, we need to add it to the TableView, adjust its width, listen to its visibility, and update our appearance.

AddControl ( Control control, int position ) : void
ClearListItems ( ) : void
ControlAtAbsolutePosition ( Point p ) : Control

Find a control at the given screen position, in absolute coordinates.

Highlight ( Control c ) : void
IndexOfListItem ( Control control ) : int
RemoveControl ( Control control ) : void
Unhighlight ( Control c ) : void

Protected Methods

Method Description
AlternateColorsOfEntries ( ) : void

Alternates colors of entries between gray and transparent.

Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ControlList ( ) : System
ControlList_Load ( object sender, EventArgs e ) : void
FormatAndAddControl ( Control control ) : void

Utility method to get a control read and stick it at the end of the table layout

FormatAndAddControl ( Control control, int position ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnListItemClicked ( object sender, MouseEventArgs e ) : void
OnlistItemDoubleClicked ( object sender, MouseEventArgs e ) : void
ShiftRowsDown ( int row ) : void

All rows at 'row' will be shifted down one.

ShiftRowsUp ( int row ) : void

All rows at 'row' will be shifted down one.

UpdateTableHeight ( ) : void

Update the heights of the tablet layout and scroll panel controls

control_VisibleChanged ( object sender, EventArgs e ) : void

Method Details

AddAll() public method

Add many controls at once. Improves drawing performance slightly.
public AddAll ( List controls ) : void
controls List
return void

AddControl() public method

When a control is added, we need to add it to the TableView, adjust its width, listen to its visibility, and update our appearance.
public AddControl ( Control control ) : void
control Control
return void

AddControl() public method

public AddControl ( Control control, int position ) : void
control Control
position int
return void

AlternateColorsOfEntries() protected method

Alternates colors of entries between gray and transparent.
protected AlternateColorsOfEntries ( ) : void
return void

ClearListItems() public method

public ClearListItems ( ) : void
return void

ControlAtAbsolutePosition() public method

Find a control at the given screen position, in absolute coordinates.
public ControlAtAbsolutePosition ( Point p ) : Control
p Point
return Control

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Highlight() public method

public Highlight ( Control c ) : void
c Control
return void

IndexOfListItem() public method

public IndexOfListItem ( Control control ) : int
control Control
return int

RemoveControl() public method

public RemoveControl ( Control control ) : void
control Control
return void

Unhighlight() public method

public Unhighlight ( Control c ) : void
c Control
return void