Exemplo n.º 1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            departmentsTableAdapter dadeps = new departmentsTableAdapter();

            dadeps.Update(ds.departments);

            employeeTableAdapter daemps = new employeeTableAdapter();

            daemps.Update(ds.employee);
        }
Exemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            departmentsTableAdapter dadeps = new departmentsTableAdapter();

            ds = new DataSet2();
            dadeps.Fill(ds.departments);
            dgdept.ItemsSource = ds.departments.DefaultView;


            employeeTableAdapter daemps = new employeeTableAdapter();

            daemps.Fill(ds.employee);
            dgData.ItemsSource = ds.employee.DefaultView;
        }