internal void AddSlip(Slip aSlip) { for (int i = 0; i < MAX_BOATS; i++) { if (LeasedSlips[i] == aSlip) { break; } else if (LeasedSlips[i] == null) { LeasedSlips[i] = aSlip; break; } } }
public override bool Equals(Object obj) { bool isEqual = true; if (obj == null || this.GetType() != obj.GetType()) { isEqual = false; } else { Slip temp = (Slip)obj; if (SlipId == temp.SlipId) { isEqual = true; } else { isEqual = false; } } return(isEqual); }
public void RemoveBoatFromSlip(Slip aSlip) { aSlip.RemoveBoat(this); }
public bool AssigneBoatToSlip(Slip aSlip) { return(aSlip.AssignBoat(this)); }