private void LoadedPackages(LoadedPackagesFromRepository data)
        {
            ReadPackageLocalStateCommand localStateCommand = new ReadPackageLocalStateCommand();

            localStateCommand.Execute(data);

            WpfHelpers.DispatchToMainThread(() => _allPackages.AddRange(data.Packages));
        }
Exemple #2
0
        private void LoadedPackages(LoadedPackagesFromRepository data)
        {
            PackageRepositoryViewModel repositoryViewModel = _packageRepositories.FirstOrDefault(repo => repo.Name == data.Repository.Name);

            if (repositoryViewModel != null)
            {
                WpfHelpers.DispatchToMainThread(() => repositoryViewModel.SetPackages(data.Packages));
            }
        }