public int CompareTo(IListBoxItem other) { ItemResource item = other as ItemResource; if (item != null) { return(CompareTo(item)); } return(0); }
public int CompareTo(ItemResource other) { if (Sorting.Column == 2) { return(Cost.CompareTo(other.Cost)); } else if (Sorting.Column == 3) { return(AppropriateLevel.CompareTo(other.AppropriateLevel)); } else { return(LocalizedName.CompareTo(other.LocalizedName)); } }
public int CompareTo(ItemResource other) { if (Sorting.Column == 2) { return Cost.CompareTo(other.Cost); } else if (Sorting.Column == 3) { return AppropriateLevel.CompareTo(other.AppropriateLevel); } else { return LocalizedName.CompareTo(other.LocalizedName); } }