C# Class AK.F1.Timing.Model.Grid.GridRowModelBase

Inheritance: ModelBase
显示文件 Open project: simoneb/ak-f1-timing

Public Methods

Method Description
GetColumn ( GridColumn column ) : GridColumnModel

Returns the column model for the specified column.

Reset ( ) : void

Resets all the columns specified by this row.

ToString ( ) : string
Update ( GridColumn column, GridColumnColour colour ) : void

Updates the colour of the specified column.

Update ( GridColumn column, GridColumnColour colour, string text ) : void

Updates the text and colour of the specified column.

Protected Methods

Method Description
GridRowModelBase ( int id ) : System

Initialises a new instance of the GridRowModelBase.

Method Details

GetColumn() public method

Returns the column model for the specified column.
/// Thrown when the specified is not contained by the row. ///
public GetColumn ( GridColumn column ) : GridColumnModel
column GridColumn The column.
return GridColumnModel

GridRowModelBase() protected method

Initialises a new instance of the GridRowModelBase.
protected GridRowModelBase ( int id ) : System
id int The row Id.
return System

Reset() public method

Resets all the columns specified by this row.
public Reset ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Update() public method

Updates the colour of the specified column.
public Update ( GridColumn column, GridColumnColour colour ) : void
column GridColumn The coloumn to update.
colour GridColumnColour The new column colour.
return void

Update() public method

Updates the text and colour of the specified column.
public Update ( GridColumn column, GridColumnColour colour, string text ) : void
column GridColumn The coloumn to update.
colour GridColumnColour The new column colour.
text string The new column text.
return void