private void HostingUnitOwnerButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         HostingUnitOwner hostingUnitOwner = new HostingUnitOwner();
         hostingUnitOwner.ShowDialog();
     }
     catch (Exception ex) { MessageBox.Show(ex.Message); }
 }
        private void HostingUnitOwnerButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                long key = long.Parse(HostingUnitOwnerBox.Text);

                Host             host             = bl.FindHostByKey(key);
                HostingUnitOwner hostingUnitOwner = new HostingUnitOwner();
                hostingUnitOwner.ShowDialog();
            }
            catch (Exception ex)
            {
                HostingUnitOwnerBox.Text = null;
                MessageBox.Show(ex.Message);
            }
        }