Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/10 16:53:27 (14 years ago)
Author:
gkronber
Message:

Improved controls for deployment service interaction.
Increased max values for message sizes and related limits in the deployment service configuration.
Recreated proxy classes for the deployment service.

#891 (Refactor GUI for plugin management)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginAdministrator/3.3/ProductEditor.cs

    r3081 r3179  
    9191
    9292    private void refreshProductsWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) {
    93       this.products = new List<PluginDeploymentService.ProductDescription>(
    94         (PluginDeploymentService.ProductDescription[])((object[])e.Result)[0]);
    95       this.plugins = new List<PluginDeploymentService.PluginDescription>(
    96         (PluginDeploymentService.PluginDescription[])((object[])e.Result)[1]);
    97 
    98       UpdateProductsList();
    99       dirtyProducts.Clear();
    100 
    101       Cursor = Cursors.Default;
    102       SetControlsEnabled(true);
     93      if (!e.Cancelled && e.Result != null) {
     94        this.products = new List<PluginDeploymentService.ProductDescription>(
     95          (PluginDeploymentService.ProductDescription[])((object[])e.Result)[0]);
     96        this.plugins = new List<PluginDeploymentService.PluginDescription>(
     97          (PluginDeploymentService.PluginDescription[])((object[])e.Result)[1]);
     98
     99        UpdateProductsList();
     100        dirtyProducts.Clear();
     101
     102        Cursor = Cursors.Default;
     103        SetControlsEnabled(true);
     104      }
    103105    }
    104106    #endregion
     
    136138      newProductButton.Enabled = enabled;
    137139      splitContainer.Enabled = enabled;
     140      productsListView.Enabled = enabled;
     141      nameLabel.Enabled = enabled;
     142      nameTextBox.Enabled = enabled;
     143      versionLabel.Enabled = enabled;
     144      versionTextBox.Enabled = enabled;
     145      pluginListView.Enabled = enabled;
    138146    }
    139147
Note: See TracChangeset for help on using the changeset viewer.