private void btnGerar_Click(object sender, EventArgs e) { if (!Program.configProgram) { this.sbFileLog.AppendLine("Start Process - " + DateTime.Now.ToString()); this.sbFileLog.AppendLine(); this.BiderConnection(); this.BinderProgram(); Program.SqlTableList = LoadDataBaseSchema.GetTables(); this.GerarQueryConfig(); this.GerarDBClassConfig(); this.GerarBusinessClassConfig(); this.sbFileLog.AppendLine("Finish Process - " + DateTime.Now.ToString()); this.persisteLog(); } else { this.sbFileLog.AppendLine("Start Process - " + DateTime.Now.ToString()); this.sbFileLog.AppendLine(); if (!Directory.Exists(this.txtPath.Text + @"\CSGen")) { Directory.CreateDirectory(this.txtPath.Text + @"\CSGen"); } Program.outputPath = this.txtPath.Text + @"\CSGen"; this.BinderProgram(); this.GerarQueryConfig(); this.GerarDBClassConfig(); this.GerarBusinessClassConfig(); this.sbFileLog.AppendLine("Finish Process - " + DateTime.Now.ToString()); this.persisteLog(); } if (Program.createSolution) { CreateProject project = new CreateProject(TipoProjeto.DataBase); project.Build(); CreateProject project2 = new CreateProject(TipoProjeto.Business); project2.stringDataBaseGuide = project.stringGuid; project2.Build(); new CSGen.CreateSolution.CreateSolution(project.stringGuid, project2.stringGuid).Build(); } MessageBox.Show("Processo Executado com Sucesso!", "CSGen", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); }