Ejemplo n.º 1
0
        public async Task UpdateCollection()
        {
            var KeyUser = await _bigService.GetAllKeys(false);

            keys = new ObservableCollection <DetailsView>(KeyUser.MapToDetailsView());
            RaisePropertyChanged(nameof(keys));
        }
Ejemplo n.º 2
0
        public Task UpdateGenerealCollection()
        {
            var items = Task.Run(async() => await _userAndKeyHandler.GetAllKeys(true));

            BookedKeyCollections = items.Result.MapToDetailsView();
            return(Task.CompletedTask);
        }
Ejemplo n.º 3
0
        public GeneralViewModel(UserAndKeyHandler bigService)
        {
            _bigService = bigService;

            var CollUser = (IEnumerable <User>)Task.Run(async() => await _bigService.GetAll <User>()).Result;

            users = new ObservableCollection <DetailsView>(CollUser.MapToDetailsView().OrderBy(x => x.LastName));

            var KeyUser = Task.Run(async() => await _bigService.GetAllKeys(false)).Result;

            keys = new ObservableCollection <DetailsView>(KeyUser.MapToDetailsView().OrderBy(x => x.KeyNumber));
        }