public void Uninstall(PackageKey pck) { if (InstalledPackages.Contains(pck)) { InstalledPackages.Remove(pck); } }
public void Install(PackageKey pck) { PackageKey installedPackage = InstalledPackages.FirstOrDefault(k => k.LooseEquals(pck)); if (installedPackage != null) { InstalledPackages.Remove(installedPackage); } InstalledPackages.Add(pck); }