Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/20/08 12:03:32 (16 years ago)
Author:
gkronber
Message:

removed waring dialog when for deleting files (ticket #12)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure.GUI/ManagerForm.cs

    r8 r9  
    4141    private Dictionary<PluginTag, PluginAction> actions = new Dictionary<PluginTag, PluginAction>();
    4242
    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;
    4444    private string cacheDir = Application.StartupPath + "/" + HeuristicLab.PluginInfrastructure.GUI.Properties.Settings.Default.CacheDir;
    4545    private string backupDir = Application.StartupPath + "/" + HeuristicLab.PluginInfrastructure.GUI.Properties.Settings.Default.BackupDir;
     
    122122        infoTextBox.Text = "Publishing plugin:\nCreating " + packageFileName + "...\n";
    123123        foreach(string filename in plugin.Files) {
    124           infoTextBox.Text += "Adding " + filename + "\n";         
     124          infoTextBox.Text += "Adding " + filename + "\n";
    125125          zipFile.Add(filename);
    126126        }
     
    705705      upgradedPlugins.Clear();
    706706      allTags.ForEach(delegate(PluginTag tag) {
    707         if(tag.State==PluginState.Upgradeable) {
     707        if(tag.State == PluginState.Upgradeable) {
    708708          PluginManager.Manager.OnPreUpdate(tag.Plugin);
    709709
     
    797797          if(tag.State == PluginState.Upgradeable || (involvingActions.Count > 0 && involvingActions[0].Action == ManagerAction.Remove)) {
    798798            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);
    803800            });
    804801          }
     
    942939      PluginTag actionTag = (PluginTag)pluginTreeView.SelectedNode.Tag;
    943940      List<PluginAction> rootActions = GetActionsInvolving(actionTag);
    944       if(rootActions.Count>0) {
     941      if(rootActions.Count > 0) {
    945942        UnmarkRemove(actionTag);
    946943      } else {
     
    10301027          foreach(string filename in Directory.GetFiles(cacheDir)) {
    10311028            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.");
    10331030              ClearTemporaryFiles();
    10341031              return;
Note: See TracChangeset for help on using the changeset viewer.