public static Guest Guest(Access.Guest from) { if (@from == null) { return null; } var toGuest = new Guest(@from.FirstName, @from.LastName); return toGuest; }
public RoomVoxel(Point3D position, Color colour, double scale = 1.00, Guest guest = null, string roomNumber = null) { Position = position; Colour = colour; Scale = scale; Guest = guest; RoomNumber = roomNumber; }
private void CheckinGuest(string firstName, string lastName) { using (var svc = resolver.Resolve<IOccupancyManager_Wpf>()) { var guest = new Guest(firstName, lastName); txtFirstName.Text = ""; txtLastName.Text = ""; Room room = null; try { room = svc.CheckinGuest(guest); } catch (FaultException ex) { MessageBox.Show(ex.Message); } RebuildMap(); if (room != null) { tbInformation.Text = "Guest " + room.Guest.FirstName + " " + room.Guest.LastName + " checked into room " + room.RoomNumber; } else { tbInformation.Text = ""; } } }
/// <summary> /// Adds a voxel at the specified position. /// </summary> /// <param name="p">The p.</param> /// <param name="scale"></param> /// <param name="guest"></param> /// <param name="roomNumber"></param> public void AddVoxel(Point3D p, double scale = 1.00, Guest guest = null, string roomNumber = "") { Voxels.Add(new RoomVoxel(p, CurrentColor, scale, guest, roomNumber)); UpdateModel(); }
/// <summary> /// Adds the a voxel adjacent to the specified model. /// </summary> /// <param name="source">The source.</param> /// <param name="normal">The normal.</param> /// <param name="guest"></param> /// <param name="roomNumber"></param> public void Add(Model3D source, Vector3D normal, Guest guest, string roomNumber) { if (!ModelToVoxel.ContainsKey(source)) { return; } RoomVoxel v = ModelToVoxel[source]; AddVoxel(v.Position + normal, guest: guest, roomNumber: roomNumber); }