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