예제 #1
0
        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;
        }
예제 #2
0
        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;
        }