示例#1
0
        public OutputForm(bool showProjectLocation)
        {
            InitializeComponent();
            outputForm = this;

            // Settings
            chkShowProject.Checked = showProjectLocation;
        }
示例#2
0
        private void btnCreateProject_Click(object sender, EventArgs e)
        {
            // Check user inputs
            if (txtRootDir_ProjectCodeName.Text.Equals(""))
            {
                MessageBox.Show("Project Code Name was empty", "Error");
                return;
            }
            if (txtRootDir_ProjectLocation.Text.Equals(""))
            {
                MessageBox.Show("Project Location was empty", "Error");
                return;
            }
            if (txtProject_SolutionName.Text.Equals(""))
            {
                MessageBox.Show("Solution Name was empty", "Error");
                return;
            }
            if (txtProject_ProjectName.Text.Equals(""))
            {
                MessageBox.Show("Project Name was empty", "Error");
                return;
            }

            // Set project type
            if (optTypes_ConsoleProject.Checked)
            {
                ProjectTypes_SelectedProject = ProjectTypes.Console;
            }
            if (optTypes_LibraryProject.Checked)
            {
                ProjectTypes_SelectedProject = ProjectTypes.Library;
            }
            if (optTypes_SDL2Project.Checked)
            {
                ProjectTypes_SelectedProject = ProjectTypes.SDL2;
                AddSDL2_net = chkAddNet.Checked;
                AddSDL2_ttf = chkAddTtf.Checked;
            }

            // Generate the project
            OutputForm output = new OutputForm(settings.GetDefaultShowProjectLocation());

            output.Show();
        }