private void profileButton_Click(object sender, RoutedEventArgs e)
 {
     if (owner == null)
         MessageBox.Show("Owner is empty");
     else
     {
         DetailsClient ownerDetails = new DetailsClient(owner);
         ownerDetails.ShowDialog();
     }
 }
 private void details_Click(object sender, RoutedEventArgs e)
 {
     Client selected = ClientGrid.SelectedItem as Client;
     if (selected == null)
         MessageBox.Show("You must select a client");
     else
     {
         DetailsClient client = new DetailsClient(selected);
         client.ShowDialog();
     }
 }