Пример #1
0
        // Load data to collection
        public ObservableCollection <Task> LoadDataToObservableCollection()
        {
            WebAPIAsyncLoad <Task> retrievedCatalog        = new WebAPIAsyncLoad <Task>();
            Task <ObservableCollection <Task> > table      = retrievedCatalog.Load("Tasks");
            ObservableCollection <Task>         collection = table.Result;

            return(collection);
        }
Пример #2
0
        // Load data to collection
        public ObservableCollection <Station> LoadDataToObservableCollection()
        {
            WebAPIAsyncLoad <Station> retrievedCatalogs        = new WebAPIAsyncLoad <Station>();
            Task <ObservableCollection <Station> > tables      = retrievedCatalogs.Load("Stations");
            ObservableCollection <Station>         collections = tables.Result;

            return(collections);
        }