Ejemplo n.º 1
0
        public static InstalledPackage GetByGuid(string packageGuid)
        {
            InstalledPackage pack = new InstalledPackage();

            pack.Data = data.Package(packageGuid, IOHelper.MapPath(Settings.InstalledPackagesSettings));
            return(pack);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }