public PackageManager()
        {
            this.RemotePackages    = new PackageDictionary();
            this.InstalledPackages = new PackageDictionary();
            this.QueuedPackages    = new PackageDictionary();

            this.LoadPackageDirectory(PackageManager.DIRECTORY_PACKAGES, this.InstalledPackages);
            this.LoadPackageDirectory(PackageManager.DIRECTORY_UPDATES_PACKAGES, this.QueuedPackages);
        }
 private void LoadPackageDirectory(string path, PackageDictionary target)
 {
     try {
         if (Directory.Exists(path) == true)
         {
             foreach (string packagePath in Directory.GetFiles(path, "*.xml"))
             {
                 try {
                     target.AddPackage(new Package(File.ReadAllText(packagePath)));
                 }
                 catch (Exception) { }
             }
         }
     }
     catch (Exception) { }
 }