Exemple #1
0
 private void showDataGridView(int a)
 {
     try
     {
         if (a == 1)
         {
             DataGrid_s.ItemsSource = null;
             DataGrid_s.ItemsSource = bl.Allcontract();
         }
         else if (a == 3)
         {
             DataGrid_s.ItemsSource = null;
             DataGrid_s.ItemsSource = bl.AllEmployee();
         }
         else if (a == 2)
         {
             DataGrid_s.ItemsSource = null;
             DataGrid_s.ItemsSource = bl.AllEmployer();
         }
         else if (a == 4)
         {
             DataGrid_s.ItemsSource = null;
             DataGrid_s.ItemsSource = bl.Allspecialization();
         }
     }
     catch (Exception)
     {
         MessageBox.Show("שגיאה", "ERROR", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
 private void showDataGridView()
 {
     try
     {
         DataGrid_s.ItemsSource = null;
         DataGrid_s.ItemsSource = bl.AllEmployer();
     }
     catch (Exception)
     {
         MessageBox.Show("שגיאה", "ERROR", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }