//public void updateClickButton(object sender, RoutedEventArgs e)
        //{
        //    try
        //    {
        //        if (privateNameTextBox.Text=="" || familyNameTextBox.Text=="" || mailAddressTextBox.Text=="")
        //        {
        //            MessageBox.Show("Missing information", "", MessageBoxButton.OK, MessageBoxImage.Warning);
        //            return;
        //        }
        //        guest.PrivateName = privateNameTextBox.Text;
        //        guest.FamilyName = familyNameTextBox.Text;
        //        guest.MailAddress = mailAddressTextBox.Text;
        //        myBL.UpdateGuestRequestInfo(guest);

        //        Close();
        //        AddRequestOldUserMainWindow window = new AddRequestOldUserMainWindow(guest);
        //        window.ShowDialog();
        //    }
        //    catch
        //    {
        //        MessageBox.Show("Inner exception", "", MessageBoxButton.OK, MessageBoxImage.Error);
        //    }

        //}

        public void MoreInfoClick(object sender, RoutedEventArgs e)
        {
            MoreInfoGuestRequestWindow window = new MoreInfoGuestRequestWindow(GuestRequestList.SelectedItem);

            window.Show();
            //if (GuestRequestList.SelectedItem != null)
            //  MessageBox.Show(GuestRequestList.SelectedItem.ToString(), "Hosting unit information", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.None, MessageBoxOptions.RtlReading);
        }
 private void mouseMoreInfoClick(object sender, RoutedEventArgs e)
 {
     if (options.SelectedIndex == 0)
     {
         MoreInfoHostWindow window = new MoreInfoHostWindow(HostingUnitsList.SelectedItem);
         window.Show();
     }
     if (options.SelectedIndex == 1)
     {
         MoreInfoOrderWindow window = new MoreInfoOrderWindow(HostingUnitsList.SelectedItem);
         window.Show();
     }
     if (options.SelectedIndex == 2 || options.SelectedIndex == 3)
     {
         MoreInfoGuestRequestWindow window = new MoreInfoGuestRequestWindow(HostingUnitsList.SelectedItem);
         window.Show();
     }
     if (options.SelectedIndex == 4)
     {
         MoreInfoHostingUnitWindow window = new MoreInfoHostingUnitWindow(HostingUnitsList.SelectedItem);
         window.Show();
     }
 }