Пример #1
0
 public ColumnComparer(OLVColumn col, SortOrder order, OLVColumn col2, SortOrder order2) : this(col, order)
 {
     if (col != col2)
     {
         this.secondComparer = new ColumnComparer(col2, order2);
     }
 }
Пример #2
0
 /// <summary>
 /// Create a ColumnComparer that will order the rows in a list view according
 /// to the values in a given column, and by a secondary column if the primary
 /// column is equal.
 /// </summary>
 /// <param name="col">The column whose values will be compared</param>
 /// <param name="order">The ordering for column values</param>
 /// <param name="col2">The column whose values will be compared for secondary sorting</param>
 /// <param name="order2">The ordering for secondary column values</param>
 public ColumnComparer(OLVColumn col, SortOrder order, OLVColumn col2, SortOrder order2)
     : this(col, order)
 {
     // There is no point in secondary sorting on the same column
     if (col != col2)
     {
         secondComparer = new ColumnComparer(col2, order2);
     }
 }