void IWizard.RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { var wizard = new AddNewItemWizard_Macro_Form(); if (wizard.ShowDialog() != DialogResult.OK) throw Marshal.GetExceptionForHR(VSConstants.OLE_E_PROMPTSAVECANCELLED); wizard.MacroType.FillReplacementsDictionary(replacementsDictionary); }
void IWizard.RunStarted(object automationObject, Dictionary <string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { var wizard = new AddNewItemWizard_Macro_Form(); if (wizard.ShowDialog() != DialogResult.OK) { throw Marshal.GetExceptionForHR(VSConstants.OLE_E_PROMPTSAVECANCELLED); } wizard.MacroType.FillReplacementsDictionary(replacementsDictionary); }