Christoc.DNNTemplates.SetupWizard.SetupWizard.RunStarted C# (CSharp) Метод

RunStarted() публичный Метод

public RunStarted ( object automationObject, string>.Dictionary replacementsDictionary, WizardRunKind runKind, object customParams ) : void
automationObject object
replacementsDictionary string>.Dictionary
runKind WizardRunKind
customParams object
Результат void
        public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
        {
            _dte = (DTE)automationObject;

            _shouldAddProjectItem = false;
            var inputForm = new WizardView();
            inputForm.ShowDialog();
            if (inputForm.OwnerEmail == null || inputForm.RootNameSpace == null || inputForm.OwnerName == null || inputForm.OwnerWebsite == null || inputForm.DevEnvironmentUrl == null) return;
            _shouldAddProjectItem = true;
            /* remove them first so there isn't any conflict, they get added by the project templates themselves originally */
            replacementsDictionary.Remove("$rootnamespace$");
            replacementsDictionary.Remove("$ownername$");
            replacementsDictionary.Remove("$owneremail$");
            replacementsDictionary.Remove("$ownerwebsite$");
            replacementsDictionary.Remove("$devenvironmenturl$");

            replacementsDictionary.Add("$rootnamespace$", inputForm.RootNameSpace);
            replacementsDictionary.Add("$ownername$", inputForm.OwnerName);
            replacementsDictionary.Add("$owneremail$", inputForm.OwnerEmail);
            replacementsDictionary.Add("$ownerwebsite$", inputForm.OwnerWebsite);
            replacementsDictionary.Add("$devenvironmenturl$", inputForm.DevEnvironmentUrl);
        }