Changeset 1545 for trunk/tools
- Timestamp:
- 04/10/09 01:04:50 (16 years ago)
- Location:
- trunk/tools/NewPluginWizard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/NewPluginWizard/NewPluginWizard.cs
r1544 r1545 44 44 public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { 45 45 try { 46 MessageBox.Show("Init"); 46 47 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 } 50 53 } 54 MessageBox.Show("Done"); 51 55 } 52 56 catch (Exception ex) { -
trunk/tools/NewPluginWizard/NewPluginWizardForm.Designer.cs
r1544 r1545 70 70 this.okButton.Text = "&OK"; 71 71 this.okButton.UseVisualStyleBackColor = true; 72 this.okButton.Click += new System.EventHandler(this.okButton_Click); 72 73 // 73 74 // cancelButton -
trunk/tools/NewPluginWizard/NewPluginWizardForm.cs
r1544 r1545 41 41 propertyGrid.SelectedObject = mySettings; 42 42 } 43 44 private void okButton_Click(object sender, EventArgs e) { 45 this.Close(); 46 } 43 47 } 44 48 }
Note: See TracChangeset
for help on using the changeset viewer.