private void SetPluginIsExpanderVisible() { if (_isExpanded && _updateManager != null && (_children == null || _children.Count == 0)) { var dllListings = _updateManager.GetDllListings(_dllListing); if (dllListings != null) { _children = new AsyncObservableCollection <IDllListingModel>( dllListings.Select(input => new DllListingModel(_updateManager, input)) .ToList()); } IsExpanderVisible = _children != null && _children.Count > 0; } }
void PerformLoadAll() { var names = _updateManager.GetDllListings(null).Select(input => new DllListingModel(_updateManager, input)).ToList(); AllDllListingModels = new List <IDllListingModel>(names); }