private async Task LoadInstalledSmartInkPackagesAsync() { InstalledPackages.Clear(); _packages = await _packageManager.GetInstalledPackagesAsync(); foreach (var package in _packages) { InstalledPackages.Add(package); } }
public void Install(PackageKey pck) { PackageKey installedPackage = InstalledPackages.FirstOrDefault(k => k.LooseEquals(pck)); if (installedPackage != null) { InstalledPackages.Remove(installedPackage); } InstalledPackages.Add(pck); }