Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/05/10 11:37:57 (15 years ago)
Author:
gkronber
Message:

Refactored class names and fixed a dependency-selection bug. #994 (Clean up plugin infrastructure project)

File:
1 edited

Legend:

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

    r3624 r3627  
    6666      versionTextBox.Text = plugin.Version.ToString();
    6767      contactTextBox.Text = CombineStrings(plugin.ContactName, plugin.ContactEmail);
     68      toolTip.SetToolTip(contactTextBox, contactTextBox.Text);
    6869      descriptionTextBox.Text = plugin.Description;
     70      toolTip.SetToolTip(descriptionTextBox, plugin.Description);
    6971      var localPlugin = plugin as PluginDescription;
    7072      if (localPlugin != null) {
    7173        stateTextBox.Text = localPlugin.PluginState.ToString();
    7274        errorTextBox.Text = localPlugin.LoadingErrorInformation;
     75        toolTip.SetToolTip(stateTextBox, stateTextBox.Text + Environment.NewLine + errorTextBox.Text);
     76        toolTip.SetToolTip(errorTextBox, errorTextBox.Text);
    7377      }
    7478      foreach (PluginDescription dependency in plugin.Dependencies) {
     
    9296      Util.ResizeColumns(filesListView.Columns.OfType<ColumnHeader>());
    9397
    94       licenseButton.Enabled = !string.IsNullOrEmpty(plugin.LicenseText);
     98      showLicenseButton.Enabled = !string.IsNullOrEmpty(plugin.LicenseText);
    9599    }
    96100
     
    106110    }
    107111
    108     private void licenseButton_Click(object sender, EventArgs e) {
    109       LicenseView view = new LicenseView(plugin);
    110       view.Show();
    111     }
    112 
    113112    private void dependenciesListView_ItemActivate(object sender, EventArgs e) {
    114113      if (dependenciesListView.SelectedItems.Count > 0) {
     
    118117      }
    119118    }
     119
     120    private void showLicenseButton_Click(object sender, EventArgs e) {
     121      LicenseView view = new LicenseView(plugin);
     122      view.Show();
     123    }
    120124  }
    121125}
Note: See TracChangeset for help on using the changeset viewer.