Inheritance: System.Windows.Forms.Form
 /// <summary>
 /// Runs custom wizard logic at the beginning of a template wizard run.
 /// </summary>
 /// <param name="automationObject">The automation object being used by the template wizard.</param>
 /// <param name="replacementsDictionary">The list of standard parameters to be replaced.</param>
 /// <param name="runKind">A <see cref="T:Microsoft.VisualStudio.TemplateWizard.WizardRunKind" /> indicating the type of wizard run.</param>
 /// <param name="customParams">The custom parameters with which to perform parameter replacement in the project.</param>
 /// <exception cref="Microsoft.VisualStudio.TemplateWizard.WizardBackoutException"></exception>
 public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
 {
     this.mForm = new UI5AppWizard();
     this.mForm.ShowDialog();
     if (this.mForm.DialogResult == DialogResult.Cancel)
     {
         var destinationDirectory = replacementsDictionary["$destinationdirectory$"];
         if (Directory.Exists(destinationDirectory))
         {
             Directory.Delete(destinationDirectory, true);
         }
         throw new WizardBackoutException();
     }
     this.mDTE = automationObject as DTE;
     this.mRootPath = replacementsDictionary["$safeprojectname$"].ToLowerInvariant()
         .Replace(" ", string.Empty);
     replacementsDictionary.Add("$rootmodulepath$", this.mRootPath);
     this.mView = this.mForm.SelectedView(this.mRootPath + ".Main");
     this.mType = this.mForm.SelectedProject;
 }
 /// <summary>
 /// Runs custom wizard logic at the beginning of a template wizard run.
 /// </summary>
 /// <param name="automationObject">The automation object being used by the template wizard.</param>
 /// <param name="replacementsDictionary">The list of standard parameters to be replaced.</param>
 /// <param name="runKind">A <see cref="T:Microsoft.VisualStudio.TemplateWizard.WizardRunKind" /> indicating the type of wizard run.</param>
 /// <param name="customParams">The custom parameters with which to perform parameter replacement in the project.</param>
 /// <exception cref="Microsoft.VisualStudio.TemplateWizard.WizardBackoutException"></exception>
 public void RunStarted(object automationObject, Dictionary <string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
 {
     this.mForm = new UI5AppWizard();
     this.mForm.ShowDialog();
     if (this.mForm.DialogResult == DialogResult.Cancel)
     {
         var destinationDirectory = replacementsDictionary["$destinationdirectory$"];
         if (Directory.Exists(destinationDirectory))
         {
             Directory.Delete(destinationDirectory, true);
         }
         throw new WizardBackoutException();
     }
     this.mDTE      = automationObject as DTE;
     this.mRootPath = replacementsDictionary["$safeprojectname$"].ToLowerInvariant()
                      .Replace(" ", string.Empty);
     replacementsDictionary.Add("$rootmodulepath$", this.mRootPath);
     this.mView = this.mForm.SelectedView(this.mRootPath + ".Main");
     this.mType = this.mForm.SelectedProject;
 }
 /// <summary>
 /// Runs custom wizard logic at the beginning of a template wizard run.
 /// </summary>
 /// <param name="automationObject">The automation object being used by the template wizard.</param>
 /// <param name="replacementsDictionary">The list of standard parameters to be replaced.</param>
 /// <param name="runKind">A <see cref="T:Microsoft.VisualStudio.TemplateWizard.WizardRunKind" /> indicating the type of wizard run.</param>
 /// <param name="customParams">The custom parameters with which to perform parameter replacement in the project.</param>
 public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
 {
     this.mForm = new UI5AppWizard();
     this.mForm.ShowDialog();
     if (this.mForm.DialogResult == DialogResult.Cancel)
     {
         var destinationDirectory = replacementsDictionary["$destinationdirectory$"];
         if (Directory.Exists(destinationDirectory))
         {
             Directory.Delete(destinationDirectory, true);
         }
         throw new WizardBackoutException();
     }
     this.mDTE = automationObject as DTE;
     var ns = replacementsDictionary["$rootnamespace$"];
     this.mRootPath = ns.Substring(ns.IndexOf('.') + 1);
     this.mControllerName = replacementsDictionary["$safeitemname$"].ToLowerInvariant();
     replacementsDictionary.Add("$rootmodulepath$", this.mRootPath);
     replacementsDictionary.Add("$controllername$", this.mControllerName);
     this.mView = this.mForm.SelectedView(this.mRootPath + "." + this.mControllerName);
     this.mType = this.mForm.SelectedProject;
 }
        /// <summary>
        /// Runs custom wizard logic at the beginning of a template wizard run.
        /// </summary>
        /// <param name="automationObject">The automation object being used by the template wizard.</param>
        /// <param name="replacementsDictionary">The list of standard parameters to be replaced.</param>
        /// <param name="runKind">A <see cref="T:Microsoft.VisualStudio.TemplateWizard.WizardRunKind" /> indicating the type of wizard run.</param>
        /// <param name="customParams">The custom parameters with which to perform parameter replacement in the project.</param>
        public void RunStarted(object automationObject, Dictionary <string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
        {
            this.mForm = new UI5AppWizard();
            this.mForm.ShowDialog();
            if (this.mForm.DialogResult == DialogResult.Cancel)
            {
                var destinationDirectory = replacementsDictionary["$destinationdirectory$"];
                if (Directory.Exists(destinationDirectory))
                {
                    Directory.Delete(destinationDirectory, true);
                }
                throw new WizardBackoutException();
            }
            this.mDTE = automationObject as DTE;
            var ns = replacementsDictionary["$rootnamespace$"];

            this.mRootPath       = ns.Substring(ns.IndexOf('.') + 1);
            this.mControllerName = replacementsDictionary["$safeitemname$"].ToLowerInvariant();
            replacementsDictionary.Add("$rootmodulepath$", this.mRootPath);
            replacementsDictionary.Add("$controllername$", this.mControllerName);
            this.mView = this.mForm.SelectedView(this.mRootPath + "." + this.mControllerName);
            this.mType = this.mForm.SelectedProject;
        }