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