public int CompareTo(IListBoxItem other) { PlaceableResource place = other as PlaceableResource; if (place != null) { return(CompareTo(place)); } return(0); }
public int CompareTo(PlaceableResource other) { if (Sorting.Column == 2) { if (LockDC == other.LockDC) { return TrapDisarmDC.CompareTo(other.TrapDisarmDC); } else return LockDC.CompareTo(other.LockDC); } else if (Sorting.Column == 3) { return HasInventory.CompareTo(other.HasInventory); } else { return Name.CompareTo(other.Name); } }
public int CompareTo(PlaceableResource other) { if (Sorting.Column == 2) { if (LockDC == other.LockDC) { return(TrapDisarmDC.CompareTo(other.TrapDisarmDC)); } else { return(LockDC.CompareTo(other.LockDC)); } } else if (Sorting.Column == 3) { return(HasInventory.CompareTo(other.HasInventory)); } else { return(Name.CompareTo(other.Name)); } }