private async Task LoadAsync() { _notificationService.StartProgress(); var items = await _widgetManagerService.LoadAsync(); Widgets = _collectionService.Create(items); _notificationService.EndProgress(); }
private async Task OnLoad() { _notificationService.StartProgress(); #if DEBUG await Task.Delay(2000); //dummy delay when debug to see if notification works fine #endif var items = await _widgetService.LoadAsync(); Widgets = _collectionService.Create(items); SelectedWidget = Widgets.FirstOrDefault(); _notificationService.EndProgress(); }