/// <summary>
 /// Shows the message.
 /// </summary>
 /// <param name="guest">The guest.</param>
 private void ShowMessage(Guest guest)
 {
     PersonBase personBase = guest.MapToPersonBase();
     PersonSelectionService.SelectPerson(personBase);
     this.ShowMessagePopUp(personBase);
 }
        /// <summary>
        /// Function to select guest.
        /// </summary>
        /// <param name="guest">The guest.</param>
        private void SelectGuest(Guest guest)
        {
            if (guest != null && !this.IsStopSelection)
            {
                PersonBase personBase = guest.MapToPersonBase();
                PersonSelectionService.SelectPerson(personBase);
                if (!this.IsShowPersonInfoIconClicked)
                {
                    this.ShowAgeVerificationPopupView();
                }
            }

            this.IsShowPersonInfoIconClicked = false;
            this.IsStopSelection = false;
        }
        /// <summary>
        /// Views the guest stateroom details.
        /// </summary>
        /// <param name="guest">The guest.</param>
        private void ViewGuestStateroomDetails(Guest guest)
        {
            this.IsShowPersonInfoIconClicked = true;
            this.SelectGuest(guest);
            PersonBase person = guest.MapToPersonBase();

            if (this.tempLoyaltyLevelTypes != null)
            {
                var loyaltyLevelType = this.tempLoyaltyLevelTypes.FirstOrDefault(s => s.LoyaltyLevelTypeId == this.personsParty.SelectedPerson.CruiseDetail.LoyaltyLevelTypeId);
                if (loyaltyLevelType != null)
                {
                    person.LoyaltyLevel = loyaltyLevelType.Name;
                }
            }

            Messenger.Instance.Notify(MessengerMessage.ShowPersonInfo, new Tuple<PersonBase, bool>(person, false));
        }
        /// <summary>
        /// Function to change boarding status of the guest.
        /// </summary>
        /// <param name="guest">Instance of the guest</param>
        private static void ChangeGuestBoardingStatus(Guest guest)
        {
            if (guest != null)
            {
                PersonBase personBase = guest.MapToPersonBase();
                PersonSelectionService.SelectPerson(personBase);

                Messenger.Instance.Notify(MessengerMessage.ChangePersonBoardingStatus, personBase);
            }
        }