Exemple #1
0
        private Arguments GetArguments(ComboBox project, TextBox folders)
        {
            var file = new FileLibrary();

            var arguments = new Arguments
            {
                SolutionPath    = tbSolutionPath.Text,
                SolutionName    = tbSolutionName.Text,
                VerticleName    = tbVerticleName.Text,
                Project         = (project != null) ? project.Text : string.Empty,
                Folders         = (folders != null) ? folders.Text : string.Empty,
                DataContracts   = file.GetNamespace(cbDataContracts.Text, tbDataContracts.Text),
                DomainContracts = file.GetNamespace(cbDomainContracts.Text, tbDomainContracts.Text),
                ViewModels      = file.GetNamespace(cbViewModels.Text, tbViewModels.Text)
            };

            return(arguments);
        }