Ejemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ComputingResourcesDataSet computingResourcesDataSet = ((ComputingResourcesDataSet)(this.FindResource("computingResourcesDataSet")));

            resources.Fill(computingResourcesDataSet.Resources);
            CollectionViewSource resourcesViewSource = ((CollectionViewSource)(this.FindResource("resourcesViewSource")));

            resourcesViewSource.View.MoveCurrentToFirst();
            buildResources();
        }
Ejemplo n.º 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ComputingResourcesDataSet computingResourcesDataSet = ((ComputingResourcesDataSet)(this.FindResource("computingResourcesDataSet")));

            // Load data into the table Renter. You can modify this code as needed.
            renters.Fill(computingResourcesDataSet.Renter);
            CollectionViewSource renterViewSource = ((CollectionViewSource)(this.FindResource("renterViewSource")));

            renterViewSource.View.MoveCurrentToFirst();
            buildRenters();
        }