Exemple #1
0
        public async Task RefreshAsync()
        {
            Data = await _service.GetDataAsync(Path);

            var children = await _service.GetChildrenAsync(Path);

            Children = new ObservableCollection <NodeViewModel>(children);
        }
Exemple #2
0
        private async Task ReloadAsync()
        {
            BusyOn();
            var nodes = await _service.GetChildrenAsync("/");

            Nodes = new ObservableCollection <NodeViewModel>(nodes);
            BusyOff();
        }