Exemplo n.º 1
0
        /// <summary>
        /// Gets the project.
        /// </summary>
        /// <returns></returns>
        public Project GetProject()
        {
            Project project = Data.ProjectsController.CreateEmptyProject(txtProjectName.Text, txtProjectDirectory.Text);

            SupportedPluginComponent item = (SupportedPluginComponent)cmbDatabaseType.SelectedItem;

            project.Type       = PluginsManager.GetDataBaseType(item);
            project.Controller = new Domain.ProjectController
            {
                Guid             = item.Guid,
                Plugin           = item.Type,
                ConnectionString = txtConnectionString.Text,
                Encrypt          = chkEncrypt.Checked
            };
            project.Description = txtProjectDescription.Text;

            return(project);
        }