public Desk CreateDesk() { string deskNumber = reader["DeskNumber"].ToString(); CoordinatePoint TopLeft = new CoordinatePoint((double)reader["TopLeftX"], (double)reader["TopLeftY"]); double Orientation = (double)reader["Orientation"]; Location loc = new Location((int)reader["FloorNumber"], TopLeft, Orientation); Employee TempGuy = this.CreateEmployee(); Desk TempDesk = new Desk(loc, deskNumber, TempGuy); return TempDesk; }
public Desk(Location loc, string DeskId, Employee NewGuy) { this.CurrentTenant = NewGuy; this.Location = loc; this.DeskNumber = DeskId; }
public bool IsEqualTo(Location other) { return (this.Floor == other.Floor) && this.TopLeft.IsEqualTo(other.TopLeft); }