Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1547 for trunk/tools


Ignore:
Timestamp:
04/10/09 02:23:56 (16 years ago)
Author:
swagner
Message:

Worked on VS wizard for creating new HeuristicLab plugins (#567)

Location:
trunk/tools/Wizards
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Wizards/NewPluginWizard.cs

    r1546 r1547  
    4444    public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) {
    4545      try {
    46         MessageBox.Show("Init");
    4746        using (NewPluginWizardForm form = new NewPluginWizardForm()) {
    4847          if (form.ShowDialog() == DialogResult.OK) {
    49             MessageBox.Show(form.Settings.PluginName + "\n" + form.Settings.PluginVersion);
    50             replacementsDictionary.Add("$PluginName$", form.Settings.PluginName);
     48            MessageBox.Show(form.Settings.PluginName + "\n" + form.Settings.PluginVersion.Trim());
     49            replacementsDictionary.Add("$PluginName$", form.Settings.PluginName.Trim());
     50            replacementsDictionary.Add("$PluginClassName$", form.Settings.PluginName.Replace(".", "").Trim() + "Plugin");
    5151            replacementsDictionary.Add("$PluginVersion$", form.Settings.PluginVersion);
    5252          }
    5353        }
    54         MessageBox.Show("Done");
    5554      }
    5655      catch (Exception ex) {
  • trunk/tools/Wizards/NewPluginWizardForm.Designer.cs

    r1546 r1547  
    6464      //
    6565      this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     66      this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
    6667      this.okButton.Location = new System.Drawing.Point(449, 335);
    6768      this.okButton.Name = "okButton";
     
    7071      this.okButton.Text = "&OK";
    7172      this.okButton.UseVisualStyleBackColor = true;
    72       this.okButton.Click += new System.EventHandler(this.okButton_Click);
    7373      //
    7474      // cancelButton
  • trunk/tools/Wizards/NewPluginWizardForm.cs

    r1546 r1547  
    4141      propertyGrid.SelectedObject = mySettings;
    4242    }
    43 
    44     private void okButton_Click(object sender, EventArgs e) {
    45       this.Close();
    46     }
    4743  }
    4844}
Note: See TracChangeset for help on using the changeset viewer.