private void b2_Click(object sender, RoutedEventArgs e)
        {
            reports f = new reports(txt1.Text);

            b2.Content = "pp";
            f.Show();
        }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (purchase1.IsChecked == true)
     {
         if (txt1.Text == "")
         {
             MessageBox.Show("لايمكن ان تكون احد الحقول فارغة");
         }
         else
         {
             reports f = new reports(txt1.Text);
             b1.Content = "pp";
             f.Show();
         }
     }
 }