public static InstalledPackage GetByGuid(string packageGuid)
        {
            InstalledPackage pack = new InstalledPackage();

            pack.Data = data.Package(packageGuid, IOHelper.MapPath(Settings.InstalledPackagesSettings));
            return(pack);
        }
        public static InstalledPackage MakeNew(string name)
        {
            InstalledPackage pack = new InstalledPackage();

            pack.Data = data.MakeNew(name, IOHelper.MapPath(Settings.InstalledPackagesSettings));
            pack.OnNew(EventArgs.Empty);
            return(pack);
        }
        public static List <InstalledPackage> GetAllInstalledPackages()
        {
            List <InstalledPackage> val = new List <InstalledPackage>();

            foreach (PackageInstance pack in data.GetAllPackages(IOHelper.MapPath(Settings.InstalledPackagesSettings)))
            {
                InstalledPackage insPackage = new InstalledPackage();
                insPackage.Data = pack;
                val.Add(insPackage);
            }

            return(val);
        }