C# Class SevenSoftware.Windows.Controls.ListViewCustomComparer

Enables the listView sorter to compare classes.
Inheritance: IComparer
Show file Open project: robertbaker/SevenUpdate

Public Methods

Method Description
AddSort ( string sortColumn, ListSortDirection direction ) : void

Adds a column to the SortColumns.

Compare ( object x, object y ) : int

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Protected Methods

Method Description
ClearSort ( ) : void

Clears the sort columns.

Method Details

AddSort() public method

Adds a column to the SortColumns.
public AddSort ( string sortColumn, ListSortDirection direction ) : void
sortColumn string A string representing a column to be sorted.
direction ListSortDirection The direction to sort.
return void

ClearSort() protected method

Clears the sort columns.
protected ClearSort ( ) : void
return void

Compare() public abstract method

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public abstract Compare ( object x, object y ) : int
x object The first object to compare.
y object The second object to compare.
return int