public bool UpdateSeating()
        {
            // Add Seating
            if (SelectedSeating == null)
            {
                SelectedSeating = SeatingManager.AddSeating(SelectedRoom.Id,
                                                            GetName(), GetCapacity());
                return(SelectedSeating != null);
            }

            // Update Seating
            SelectedSeating.SetDescription(GetName());
            SelectedSeating.SetCapacity(GetCapacity());
            return(SelectedSeating.Update());
        }
Example #2
0
 // ToDo: These are needed per-say, but what if someone create
 // Multiple Rooms with TicketingTypes of the same value, then this
 // could be useful, otherwise should prevent adding multiple rooms
 // of these types
 private void SetDefaultSeating(Room room)
 {
     SeatingManager.DeleteAllSeating(room.Id);
     if (room.TicketingType == PosModels.Types.TicketType.DriveThru)
     {
         SeatingManager.AddSeating(room.Id, Strings.DriveThru, 0);
     }
     if (room.TicketingType == PosModels.Types.TicketType.Delivery)
     {
         SeatingManager.AddSeating(room.Id, Strings.Delivery, 0);
     }
     if (room.TicketingType == PosModels.Types.TicketType.Pickup)
     {
         SeatingManager.AddSeating(room.Id, Strings.Carryout, 0);
     }
     if (room.TicketingType == PosModels.Types.TicketType.Catering)
     {
         SeatingManager.AddSeating(room.Id, Strings.Catering, 0);
     }
 }