Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/05/10 10:38:19 (15 years ago)
Author:
gkronber
Message:

Implemented changes in plugin infrastructure requested by reviewers. #989 (Implement review comments in plugin infrastructure)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LocalPluginsView.cs

    r3608 r3624  
    101101          "There was an error while connecting to the server." + Environment.NewLine +
    102102           "Please check your connection settings and user credentials.");
    103       } else if (e.Cancelled) {
    104         StatusView.ShowMessage(NoUpdatesAvailableMessage);
    105103      }
    106104      StatusView.RemoveMessage(CheckingPluginsMessage);
     
    124122      if (pluginsToUpdate.Count() > 0) {
    125123        installationManager.Update(pluginsToUpdate);
    126         pluginManager.DiscoverAndCheckPlugins();
    127         e.Cancel = false;
    128       } else {
    129         e.Cancel = true;
    130       }
     124      }
     125      pluginManager.DiscoverAndCheckPlugins();
    131126    }
    132127
     
    156151      removeButton.Enabled = localPluginsListView.CheckedItems.Count > 0;
    157152      updateSelectedButton.Enabled = localPluginsListView.CheckedItems.Count > 0;
    158       foreach (ColumnHeader column in localPluginsListView.Columns) {
    159         if (localPluginsListView.Items.Count > 0)
    160           column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
    161         else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
    162       }
     153      Util.ResizeColumns(localPluginsListView.Columns.OfType<ColumnHeader>());
    163154    }
    164155
     
    239230      removePluginsBackgroundWorker.RunWorkerAsync(checkedPlugins);
    240231    }
     232
     233    private void refreshButton_Click(object sender, EventArgs e) {
     234      StatusView.LockUI();
     235      StatusView.ShowProgressIndicator();
     236      // refresh = update empty list of plugins (plugins are reloaded)
     237      updatePluginsBackgroundWorker.RunWorkerAsync(new IPluginDescription[0]);
     238    }
    241239  }
    242240}
Note: See TracChangeset for help on using the changeset viewer.