protected override async Task LoadChildren() { try { IsLoading = true; Databases = await _dbService.GetDatabasesAsync(Connection); foreach (var db in Databases) { await DispatcherHelper.RunAsync(() => Children.Add(new DatabaseNodeViewModel(db, this))); } } catch (HttpRequestException ex) { await DispatcherHelper.RunAsync(async() => await _dialogService.ShowError(ex, "Error", null, null)); } finally { IsLoading = false; } }