public void RunStarted(object automationObject, Dictionary <string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { if (runKind == WizardRunKind.AsNewItem) { var dte = automationObject as _DTE; var owner = new IDEWindow(new IntPtr(dte.MainWindow.HWnd)); _tool = replacementsDictionary["$CustomTool$"]; string dataContextName = null; if (replacementsDictionary.ContainsKey("$rootname$")) { dataContextName = replacementsDictionary["$rootname$"]; if (dataContextName.EndsWith(".dtml", StringComparison.OrdinalIgnoreCase)) { dataContextName = dataContextName.Substring(0, dataContextName.Length - ".dtml".Length); } } } throw new NotImplementedException(); }
public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { if (runKind == WizardRunKind.AsNewItem) { var dte = automationObject as _DTE; var owner = new IDEWindow(new IntPtr(dte.MainWindow.HWnd)); _tool = replacementsDictionary["$CustomTool$"]; string dataContextName = null; if (replacementsDictionary.ContainsKey("$rootname$")) { dataContextName = replacementsDictionary["$rootname$"]; if (dataContextName.EndsWith(".dtml", StringComparison.OrdinalIgnoreCase)) { dataContextName = dataContextName.Substring(0, dataContextName.Length - ".dtml".Length); } } } throw new NotImplementedException(); }