Esempio n. 1
0
 public override int CompareTo(SubItemBase other)
 {
     if (_start)
     {
         return(StringComparer.OrdinalIgnoreCase.Compare(ResultItem.StartStation.StationName, other.ResultItem.StartStation.StationName));
     }
     else
     {
         return(StringComparer.OrdinalIgnoreCase.Compare(ResultItem.EndStation.StationName, other.ResultItem.EndStation.StationName));
     }
 }
 public override int CompareTo(SubItemBase other)
 {
     return(SortWeight - (other as TicketCellSubItem).SortWeight);
 }
Esempio n. 3
0
 public override int CompareTo(SubItemBase other)
 {
     return((int)(ResultItem.FromStation.DepartureTime.Value - other.ResultItem.FromStation.DepartureTime.Value).TotalSeconds);
 }
Esempio n. 4
0
 public override int CompareTo(SubItemBase other)
 {
     return((int)(ResultItem.ToStation.ArriveTime.Value.TimeOfDay - other.ResultItem.ToStation.ArriveTime.Value.TimeOfDay).TotalSeconds);
 }
 /// <summary>
 /// 向另个单元格做比较
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public virtual int CompareTo(SubItemBase other)
 {
     return(string.Compare(Text, other.Text, true));
 }
Esempio n. 6
0
 public override int CompareTo(SubItemBase other)
 {
     return((int)(ResultItem.ElapsedTime - other.ResultItem.ElapsedTime).TotalMinutes);
 }