public bool OverlapsAnotherLift(JobTaskViewModel that) { // //same weight // return(this.Id != that.Id && this.WeightLb == that.WeightLb && this.IntFromHeight <= that.IntFromHeight && this.IntToHeight >= that.IntToHeight && this.BucketNo == that.BucketNo); }
public bool BracketsAnotherLift(JobTaskViewModel that) { // //different weight but //within the same bucket // // // |-----------------------------------| source // |----------------------------| target // return(this.Id != that.Id && this.WeightLb >= that.WeightLb && this.IntFromHeight <= that.IntFromHeight && this.IntToHeight >= that.IntToHeight && this.BucketNo == that.BucketNo); }