Beispiel #1
0
 /// <summary>
 /// Marks the extension for removal. This will leave any dependencies.
 /// </summary>
 /// <param name="appManager">The AppManager.</param>
 /// <param name="path">Name of the file.</param>
 public static void MarkExtensionForRemoval(this AppManager appManager, string path)
 {
     // Add it to a list to be delete on application restart.
     Settings.Default.ExtensionsToRemove.Add(path);
     Settings.Default.Save();
 }
Beispiel #2
0
 /// <summary>
 /// Marks the package for removal.
 /// </summary>
 /// <param name="appManager">The app manager.</param>
 /// <param name="path">The path.</param>
 public static void MarkPackageForRemoval(this AppManager appManager, string path)
 {
     // Add it to a list to be delete on application restart.
     Settings.Default.PackagesToRemove.Add(Path.Combine(AppManager.PackageDirectory, path));
     Settings.Default.Save();
 }