- Timestamp:
- 02/20/08 12:03:32 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure.GUI/ManagerForm.cs
r8 r9 41 41 private Dictionary<PluginTag, PluginAction> actions = new Dictionary<PluginTag, PluginAction>(); 42 42 43 private string pluginDir = Application.StartupPath + "/"+ HeuristicLab.PluginInfrastructure.GUI.Properties.Settings.Default.PluginDir;43 private string pluginDir = Application.StartupPath + "/" + HeuristicLab.PluginInfrastructure.GUI.Properties.Settings.Default.PluginDir; 44 44 private string cacheDir = Application.StartupPath + "/" + HeuristicLab.PluginInfrastructure.GUI.Properties.Settings.Default.CacheDir; 45 45 private string backupDir = Application.StartupPath + "/" + HeuristicLab.PluginInfrastructure.GUI.Properties.Settings.Default.BackupDir; … … 122 122 infoTextBox.Text = "Publishing plugin:\nCreating " + packageFileName + "...\n"; 123 123 foreach(string filename in plugin.Files) { 124 infoTextBox.Text += "Adding " + filename + "\n"; 124 infoTextBox.Text += "Adding " + filename + "\n"; 125 125 zipFile.Add(filename); 126 126 } … … 705 705 upgradedPlugins.Clear(); 706 706 allTags.ForEach(delegate(PluginTag tag) { 707 if(tag.State ==PluginState.Upgradeable) {707 if(tag.State == PluginState.Upgradeable) { 708 708 PluginManager.Manager.OnPreUpdate(tag.Plugin); 709 709 … … 797 797 if(tag.State == PluginState.Upgradeable || (involvingActions.Count > 0 && involvingActions[0].Action == ManagerAction.Remove)) { 798 798 tag.Plugin.Files.ForEach(delegate(string filename) { 799 DialogResult result = MessageBox.Show("Deleting: " + filename, "Warning: deleting file", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); 800 if(result == DialogResult.OK) { 801 File.Delete(filename); 802 } 799 File.Delete(filename); 803 800 }); 804 801 } … … 942 939 PluginTag actionTag = (PluginTag)pluginTreeView.SelectedNode.Tag; 943 940 List<PluginAction> rootActions = GetActionsInvolving(actionTag); 944 if(rootActions.Count >0) {941 if(rootActions.Count > 0) { 945 942 UnmarkRemove(actionTag); 946 943 } else { … … 1030 1027 foreach(string filename in Directory.GetFiles(cacheDir)) { 1031 1028 if(File.Exists(pluginDir + filename.Remove(0, cacheDir.Length))) { 1032 ShowErrorDialog("Sorry can't install the plugin " +packageName+"\nThe file: "+filename.Remove(0, cacheDir.Length)+" already exist in "+pluginDir+"\nIt seems the plugin is already installed.");1029 ShowErrorDialog("Sorry can't install the plugin " + packageName + "\nThe file: " + filename.Remove(0, cacheDir.Length) + " already exist in " + pluginDir + "\nIt seems the plugin is already installed."); 1033 1030 ClearTemporaryFiles(); 1034 1031 return;
Note: See TracChangeset
for help on using the changeset viewer.