예제 #1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     PracticApp.RealtorsDataSet realtorsDataSet = ((PracticApp.RealtorsDataSet)(this.FindResource("realtorsDataSet")));
     // Загрузить данные в таблицу Realtors. Можно изменить этот код как требуется.
     PracticApp.RealtorsDataSetTableAdapters.RealtorsTableAdapter realtorsDataSetRealtorsTableAdapter = new PracticApp.RealtorsDataSetTableAdapters.RealtorsTableAdapter();
     realtorsDataSetRealtorsTableAdapter.Fill(realtorsDataSet.Realtors);
     System.Windows.Data.CollectionViewSource realtorsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("realtorsViewSource")));
     realtorsViewSource.View.MoveCurrentToFirst();
     // Загрузить данные в таблицу RealtyType. Можно изменить этот код как требуется.
     PracticApp.RealtorsDataSetTableAdapters.RealtyTypeTableAdapter realtorsDataSetRealtyTypeTableAdapter = new PracticApp.RealtorsDataSetTableAdapters.RealtyTypeTableAdapter();
     realtorsDataSetRealtyTypeTableAdapter.Fill(realtorsDataSet.RealtyType);
     System.Windows.Data.CollectionViewSource realtyTypeViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("realtyTypeViewSource")));
     realtyTypeViewSource.View.MoveCurrentToFirst();
     // Загрузить данные в таблицу Demand. Можно изменить этот код как требуется.
     PracticApp.RealtorsDataSetTableAdapters.DemandTableAdapter realtorsDataSetDemandTableAdapter = new PracticApp.RealtorsDataSetTableAdapters.DemandTableAdapter();
     realtorsDataSetDemandTableAdapter.Fill(realtorsDataSet.Demand);
     System.Windows.Data.CollectionViewSource demandViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("demandViewSource")));
     demandViewSource.View.MoveCurrentToFirst();
 }
예제 #2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     PracticApp.RealtorsDataSet realtorsDataSet = ((PracticApp.RealtorsDataSet)(this.FindResource("realtorsDataSet")));
     // Загрузить данные в таблицу Person. Можно изменить этот код как требуется.
     PracticApp.RealtorsDataSetTableAdapters.PersonTableAdapter realtorsDataSetPersonTableAdapter = new PracticApp.RealtorsDataSetTableAdapters.PersonTableAdapter();
     realtorsDataSetPersonTableAdapter.Fill(realtorsDataSet.Person);
     System.Windows.Data.CollectionViewSource personViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("personViewSource")));
     personViewSource.View.MoveCurrentToFirst();
     // Загрузить данные в таблицу Clients. Можно изменить этот код как требуется.
     PracticApp.RealtorsDataSetTableAdapters.ClientsTableAdapter realtorsDataSetClientsTableAdapter = new PracticApp.RealtorsDataSetTableAdapters.ClientsTableAdapter();
     realtorsDataSetClientsTableAdapter.Fill(realtorsDataSet.Clients);
     System.Windows.Data.CollectionViewSource personClientsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("personClientsViewSource")));
     personClientsViewSource.View.MoveCurrentToFirst();
     // Загрузить данные в таблицу Realtors. Можно изменить этот код как требуется.
     PracticApp.RealtorsDataSetTableAdapters.RealtorsTableAdapter realtorsDataSetRealtorsTableAdapter = new PracticApp.RealtorsDataSetTableAdapters.RealtorsTableAdapter();
     realtorsDataSetRealtorsTableAdapter.Fill(realtorsDataSet.Realtors);
     System.Windows.Data.CollectionViewSource realtorsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("realtorsViewSource")));
     realtorsViewSource.View.MoveCurrentToFirst();
 }