C# Class DSShared.Lists.CustomList

A custom list view control allowing you to specify a list of columns that retrieve their row information via reflection
Inheritance: System.Windows.Forms.Control
Mostrar archivo Open project: pmprog/OpenXCOM.Tools

Protected Properties

Property Type Description
clicked ObjRow
selected ObjRow

Private Properties

Property Type Description
loading void
mouseOverRows void
rowClicked void
saving void
scroll void

Public Methods

Method Description
AddColumn ( CustomListColumn column ) : void

Adds a column to the collection

AddItem ( ObjRow row ) : void

Adds an ObjRow to the collection

AddItem ( object o ) : void

Adds an item to the collection. Creates an ObjRow and calls AddItem(ObjRow row)

Clear ( ) : void

Clears all ObjRows from the internal collection.

CustomList ( ) : System

Initializes a new instance of the T:CustomList class.

DeleteRow ( ObjRow row ) : void

Deletes the row.

GetColumn ( string name ) : CustomListColumn

Gets a column by the specified title

Protected Methods

Method Description
OnKeyDown ( KeyEventArgs e ) : void

Raises the event.

OnKeyPress ( KeyPressEventArgs e ) : void

Raises the event.

OnKeyUp ( KeyEventArgs e ) : void

Raises the event.

OnLostFocus ( EventArgs e ) : void

Raises the event.

OnMouseDown ( MouseEventArgs e ) : void

Raises the event.

OnMouseMove ( MouseEventArgs e ) : void

Raises the event.

OnMouseUp ( MouseEventArgs e ) : void

Raises the event.

OnPaint ( PaintEventArgs e ) : void

Raises the event.

OnResize ( EventArgs e ) : void

Raises the event.

Private Methods

Method Description
loading ( object sender, RegistrySaveLoadEventArgs e ) : void
mouseOverRows ( int mouseY, CustomListColumn overCol ) : void
rowClicked ( object sender, MouseEventArgs e ) : void
saving ( object sender, RegistrySaveLoadEventArgs e ) : void
scroll ( object sender, ScrollEventArgs e ) : void

Method Details

AddColumn() public method

Adds a column to the collection
public AddColumn ( CustomListColumn column ) : void
column CustomListColumn The column to add
return void

AddItem() public method

Adds an ObjRow to the collection
public AddItem ( ObjRow row ) : void
row ObjRow The row to add
return void

AddItem() public method

Adds an item to the collection. Creates an ObjRow and calls AddItem(ObjRow row)
public AddItem ( object o ) : void
o object The item to add
return void

Clear() public method

Clears all ObjRows from the internal collection.
public Clear ( ) : void
return void

CustomList() public method

Initializes a new instance of the T:CustomList class.
public CustomList ( ) : System
return System

DeleteRow() public method

Deletes the row.
public DeleteRow ( ObjRow row ) : void
row ObjRow The row to delete.
return void

GetColumn() public method

Gets a column by the specified title
public GetColumn ( string name ) : CustomListColumn
name string The name of the column to get
return CustomListColumn

OnKeyDown() protected method

Raises the event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A that contains the event data.
return void

OnKeyPress() protected method

Raises the event.
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs A that contains the event data.
return void

OnKeyUp() protected method

Raises the event.
protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A that contains the event data.
return void

OnLostFocus() protected method

Raises the event.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

OnMouseDown() protected method

Raises the event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnMouseMove() protected method

Raises the event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnMouseUp() protected method

Raises the event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A that contains the event data.
return void

OnPaint() protected method

Raises the event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data.
return void

OnResize() protected method

Raises the event.
protected OnResize ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

Property Details

clicked protected_oe property

The last ObjRow clicked on
protected ObjRow,DSShared.Lists clicked
return ObjRow

selected protected_oe property

The currently selected ObjRow
protected ObjRow,DSShared.Lists selected
return ObjRow