private void LoadedPackages(LoadedPackagesFromRepository data) { ReadPackageLocalStateCommand localStateCommand = new ReadPackageLocalStateCommand(); localStateCommand.Execute(data); WpfHelpers.DispatchToMainThread(() => _allPackages.AddRange(data.Packages)); }
private void LoadedPackages(LoadedPackagesFromRepository data) { ReadPackageLocalStateCommand localStateCommand = new ReadPackageLocalStateCommand(); localStateCommand.Execute(data); WpfHelpers.DispatchToMainThread(() => _allPackages.AddRange(data.Packages)); }
private void LoadedPackages(LoadedPackagesFromRepository data) { PackageRepositoryViewModel repositoryViewModel = _packageRepositories.FirstOrDefault(repo => repo.Name == data.Repository.Name); if (repositoryViewModel != null) { WpfHelpers.DispatchToMainThread(() => repositoryViewModel.SetPackages(data.Packages)); } }
protected override void Execute(IPackageRepository parameter) { List <PackageViewModel> packages = GetPackages(parameter); LoadedPackagesFromRepository resultData = new LoadedPackagesFromRepository { Repository = parameter, Packages = packages }; Messenger.Default.Send(MessageNames.LoadedPackagesFromRepository, resultData); }