Changeset 1545


Ignore:
Timestamp:
04/10/09 01:04:50 (12 years ago)
Author:
swagner
Message:

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

Location:
trunk/tools/NewPluginWizard
Files:
3 edited

Legend:

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

    r1544 r1545  
    4444    public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) {
    4545      try {
     46        MessageBox.Show("Init");
    4647        using (NewPluginWizardForm form = new NewPluginWizardForm()) {
    47           form.ShowDialog();
    48           replacementsDictionary.Add("$PluginName$", form.Settings.PluginName);
    49           replacementsDictionary.Add("$PluginVersion$", form.Settings.PluginVersion);
     48          if (form.ShowDialog() == DialogResult.OK) {
     49            MessageBox.Show(form.Settings.PluginName + "\n" + form.Settings.PluginVersion);
     50            replacementsDictionary.Add("$PluginName$", form.Settings.PluginName);
     51            replacementsDictionary.Add("$PluginVersion$", form.Settings.PluginVersion);
     52          }
    5053        }
     54        MessageBox.Show("Done");
    5155      }
    5256      catch (Exception ex) {
  • trunk/tools/NewPluginWizard/NewPluginWizardForm.Designer.cs

    r1544 r1545  
    7070      this.okButton.Text = "&OK";
    7171      this.okButton.UseVisualStyleBackColor = true;
     72      this.okButton.Click += new System.EventHandler(this.okButton_Click);
    7273      //
    7374      // cancelButton
  • trunk/tools/NewPluginWizard/NewPluginWizardForm.cs

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