Ejemplo n.º 1
0
        public override void RunStarted(
            object automationObject,
            Dictionary<string, string> replacementsDictionary,
            WizardRunKind runKind, object[] customParams
            )
        {
            base.RunStarted(automationObject, replacementsDictionary, runKind, customParams);

            var win = new DomainLibraryProjectWindow();
            win.txtDomainNameSpace.Text = replacementsDictionary["$safeprojectname$"];
            win.ShowDialog();

            var items = win.txtDomainNameSpace.Text.Split(new char[] { ' ', '.' }, StringSplitOptions.RemoveEmptyEntries);
            _domainName = items.Last();
            _domainNamespace = win.txtDomainNameSpace.Text.Replace(' ', '_');

            replacementsDictionary.Add("$domainNamespace$", _domainNamespace);
            replacementsDictionary.Add("$domainName$", _domainName);
        }
Ejemplo n.º 2
0
        public override void RunStarted(
            object automationObject,
            Dictionary <string, string> replacementsDictionary,
            WizardRunKind runKind, object[] customParams
            )
        {
            base.RunStarted(automationObject, replacementsDictionary, runKind, customParams);

            var win = new DomainLibraryProjectWindow();

            win.txtDomainNameSpace.Text = replacementsDictionary["$safeprojectname$"];
            win.ShowDialog();

            var items = win.txtDomainNameSpace.Text.Split(new char[] { ' ', '.' }, StringSplitOptions.RemoveEmptyEntries);

            _domainName      = items.Last();
            _domainNamespace = win.txtDomainNameSpace.Text.Replace(' ', '_');

            replacementsDictionary.Add("$domainNamespace$", _domainNamespace);
            replacementsDictionary.Add("$domainName$", _domainName);
        }