Changeset 1547
- Timestamp:
- 04/10/09 02:23:56 (16 years ago)
- Location:
- trunk/tools/Wizards
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Wizards/NewPluginWizard.cs
r1546 r1547 44 44 public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { 45 45 try { 46 MessageBox.Show("Init");47 46 using (NewPluginWizardForm form = new NewPluginWizardForm()) { 48 47 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"); 51 51 replacementsDictionary.Add("$PluginVersion$", form.Settings.PluginVersion); 52 52 } 53 53 } 54 MessageBox.Show("Done");55 54 } 56 55 catch (Exception ex) { -
trunk/tools/Wizards/NewPluginWizardForm.Designer.cs
r1546 r1547 64 64 // 65 65 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; 66 67 this.okButton.Location = new System.Drawing.Point(449, 335); 67 68 this.okButton.Name = "okButton"; … … 70 71 this.okButton.Text = "&OK"; 71 72 this.okButton.UseVisualStyleBackColor = true; 72 this.okButton.Click += new System.EventHandler(this.okButton_Click);73 73 // 74 74 // cancelButton -
trunk/tools/Wizards/NewPluginWizardForm.cs
r1546 r1547 41 41 propertyGrid.SelectedObject = mySettings; 42 42 } 43 44 private void okButton_Click(object sender, EventArgs e) {45 this.Close();46 }47 43 } 48 44 }
Note: See TracChangeset
for help on using the changeset viewer.