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 bool IsEqualTo(CoordinatePoint other) { return (this.XCoordinate == other.XCoordinate) && (this.YCoordinate == other.YCoordinate); }
public Location(int FloorNumber, CoordinatePoint TopLeftCorner, double angle) { this.Floor = FloorNumber; this.TopLeft = TopLeftCorner; this.Orientation = angle; }
public bool IsEqualTo(CoordinatePoint other) { return((this.XCoordinate == other.XCoordinate) && (this.YCoordinate == other.YCoordinate)); }