Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            _service = new EmployeeDbService();

            EmployerDataGrid.ItemsSource = _service.GetEmps();

            ListOfEmp = new ObservableCollection <EMP>();

            ListOfEmp = new ObservableCollection <EMP>(_service.GetEmps());

            EmployerDataGrid.ItemsSource = ListOfEmp;
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();
            _service = new EmployeeDbService();

            EmpsDataGrid.ItemsSource       = _service.GetEmps();
            DepartmentComboBox.ItemsSource = _service.GetDepts();
        }
Beispiel #3
0
 private void ShowButton_Click(object sender, RoutedEventArgs e)
 {
     EmpsDataGrid.ItemsSource = _service.GetEmps();
 }
Beispiel #4
0
 private void ShowAllButton_Click(object sender, RoutedEventArgs e)
 {
     EmployerDataGrid.ItemsSource = new ObservableCollection <EMP>(_service.GetEmps());
 }