C# Class ZForge.Controls.XPTable.Sorting.DateTimeComparer

An IComparer for sorting Cells that contain DateTime information
Inheritance: ComparerBase
Afficher le fichier Open project: zhuangyy/Motion

Méthodes publiques

Méthode Description
DateTimeComparer ( TableModel tableModel, int column, SortOrder sortOrder ) : System

Initializes a new instance of the DateTimeComparer class with the specified TableModel, Column index and SortOrder

Méthodes protégées

Méthode Description
CompareCells ( Cell cell1, Cell cell2 ) : int

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

Method Details

CompareCells() protected méthode

Compares two cells and returns a value indicating whether one is less than, equal to or greater than the other.
protected CompareCells ( Cell cell1, Cell cell2 ) : int
cell1 ZForge.Controls.XPTable.Models.Cell
cell2 ZForge.Controls.XPTable.Models.Cell
Résultat int

DateTimeComparer() public méthode

Initializes a new instance of the DateTimeComparer class with the specified TableModel, Column index and SortOrder
public DateTimeComparer ( TableModel tableModel, int column, SortOrder sortOrder ) : System
tableModel ZForge.Controls.XPTable.Models.TableModel The TableModel that contains the data to be sorted
column int The index of the Column to be sorted
sortOrder SortOrder Specifies how the Column is to be sorted
Résultat System