private void CheckOutButton_Click(object sender, RoutedEventArgs e)
 {
     CheckOutWindow check = new CheckOutWindow();
     if (check.ShowCheck(TableRow).Value)
     {
         this.Close();
     }
 }
 public bool? ShowCheck(DataRowView tabName)
 {
     var checkout = new CheckOutWindow();
     checkout.Table_row = tabName;
     return checkout.ShowDialog();
 }