Example #1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     ShopApp.InventoryDataSet inventoryDataSet = ((ShopApp.InventoryDataSet)(this.FindResource("inventoryDataSet")));
     // Load data into the table Products. You can modify this code as needed.
     ShopApp.InventoryDataSetTableAdapters.ProductsTableAdapter inventoryDataSetProductsTableAdapter = new ShopApp.InventoryDataSetTableAdapters.ProductsTableAdapter();
     inventoryDataSetProductsTableAdapter.Fill(inventoryDataSet.Products);
     System.Windows.Data.CollectionViewSource productsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("productsViewSource")));
     productsViewSource.View.MoveCurrentToFirst();
     ShopApp.InventoryDataSetTableAdapters.ProductsTableAdapter inventoryDataSetProductsTableAdapter1 = new ShopApp.InventoryDataSetTableAdapters.ProductsTableAdapter();
     inventoryDataSetProductsTableAdapter.Fill(inventoryDataSet.Products);
     System.Windows.Data.CollectionViewSource productsViewSource1 = ((System.Windows.Data.CollectionViewSource)(this.FindResource("productsViewSource1")));
     productsViewSource.View.MoveCurrentToFirst();
     // Load data into the table Njesite. You can modify this code as needed.
     ShopApp.InventoryDataSetTableAdapters.NjesiteTableAdapter inventoryDataSetNjesiteTableAdapter = new ShopApp.InventoryDataSetTableAdapters.NjesiteTableAdapter();
     inventoryDataSetNjesiteTableAdapter.Fill(inventoryDataSet.Njesite);
     System.Windows.Data.CollectionViewSource njesiteViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("njesiteViewSource")));
     njesiteViewSource.View.MoveCurrentToFirst();
 }
Example #2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     ShopApp.InventoryDataSet inventoryDataSet = ((ShopApp.InventoryDataSet)(this.FindResource("inventoryDataSet")));
     // Load data into the table Njesite. You can modify this code as needed.
     ShopApp.InventoryDataSetTableAdapters.NjesiteTableAdapter inventoryDataSetNjesiteTableAdapter = new ShopApp.InventoryDataSetTableAdapters.NjesiteTableAdapter();
     inventoryDataSetNjesiteTableAdapter.Fill(inventoryDataSet.Njesite);
     System.Windows.Data.CollectionViewSource njesiteViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("njesiteViewSource")));
     njesiteViewSource.View.MoveCurrentToFirst();
     // Load data into the table Groups. You can modify this code as needed.
     ShopApp.InventoryDataSetTableAdapters.GroupsTableAdapter inventoryDataSetGroupsTableAdapter = new ShopApp.InventoryDataSetTableAdapters.GroupsTableAdapter();
     inventoryDataSetGroupsTableAdapter.Fill(inventoryDataSet.Groups);
     System.Windows.Data.CollectionViewSource groupsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("groupsViewSource")));
     groupsViewSource.View.MoveCurrentToFirst();
     // Load data into the table SubGroups. You can modify this code as needed.
     ShopApp.InventoryDataSetTableAdapters.SubGroupsTableAdapter inventoryDataSetSubGroupsTableAdapter = new ShopApp.InventoryDataSetTableAdapters.SubGroupsTableAdapter();
     inventoryDataSetSubGroupsTableAdapter.Fill(inventoryDataSet.SubGroups);
     System.Windows.Data.CollectionViewSource subGroupsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("subGroupsViewSource")));
     subGroupsViewSource.View.MoveCurrentToFirst();
 }