private void BtnListEmp_Click(object sender, RoutedEventArgs e) { fitlifeDataSet dataset = new fitlifeDataSet(); // use a table adapter to populate the review table fitlifeDataSetTableAdapters.EmployeesTableAdapter adapter = new fitlifeDataSetTableAdapters.EmployeesTableAdapter(); adapter.Fill(dataset.Employees); // use the Customer table as the DataContext for this Window ListEmpDataGrid.ItemsSource = dataset.Employees.DefaultView; }
private void BtnListPT_Click(object sender, RoutedEventArgs e) { fitlifeDataSet dataset = new fitlifeDataSet(); // use a table adapter to populate the review table fitlifeDataSetTableAdapters.PersonalTrainingTableAdapter adapter = new fitlifeDataSetTableAdapters.PersonalTrainingTableAdapter(); adapter.Fill(dataset.PersonalTraining); // use the Customer table as the DataContext for this Window PersonalTrainingDataGrid.ItemsSource = dataset.PersonalTraining.DefaultView; }