public GuestRequestListPage(NavigationService navigationService)
 {
     try
     {
         InitializeComponent();
         m_navigationService = navigationService;
         List <GuestRequestItemControl> guestRequestItemsControl = new List <GuestRequestItemControl>();
         ImpBL bl = ImpBL.Instance;
         foreach (var item in bl.GetGuestRequestList())
         {
             GuestRequestItemControl gric = new GuestRequestItemControl(navigationService);
             gric.GuestRequestTextBlock.Content = item.PrivateName + " " + item.FamilyName;
             gric.GuestRequestKeyLable.Content  = "#" + item.GuestRequestKey;
             guestRequestItemsControl.Add(gric);
         }
         HostingUnitListView.ItemsSource = guestRequestItemsControl;
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
        private void fullNameSearchTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            ImpBL bl = ImpBL.Instance;

            List <GuestRequestItemControl> SubguestRequestItemsControl = new List <GuestRequestItemControl>();

            try
            {
                foreach (var item in bl.searchByName(fullNameSearchTextBox.Text))
                {
                    GuestRequestItemControl sgric = new GuestRequestItemControl(m_navigationService);
                    sgric.GuestRequestTextBlock.Content = item.PrivateName + " " + item.FamilyName;
                    sgric.GuestRequestKeyLable.Content  = "#" + item.GuestRequestKey;
                    SubguestRequestItemsControl.Add(sgric);
                }

                HostingUnitListView.ItemsSource = SubguestRequestItemsControl;
            }
            catch (Exception err)
            {
                MessageBox.Show(err.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }