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;
        }
Example #2
0
 public Desk(Location loc, string DeskId, Employee NewGuy)
 {
     this.CurrentTenant = NewGuy;
     this.Location = loc;
     this.DeskNumber = DeskId;
 }
Example #3
0
 public bool IsEqualTo(Location other)
 {
     return (this.Floor == other.Floor) && this.TopLeft.IsEqualTo(other.TopLeft);
 }