private void btnLogs_Click(object sender, EventArgs e) { FormCodeResult result = new FormCodeResult(); result.Result = String.Join("\r\n", infos.ToArray()); result.Show(); }
private void btnGenerate_Click(object sender, EventArgs e) { if (this.dataGridView1.SelectedRows.Count > 0) { IsGenerated = true; SelectedCodeTemplate = (CodeTemplate)this.dataGridView1.SelectedRows[0].DataBoundItem; CodeTemplate selectedCodeTemplate = SelectedCodeTemplate; string result = CodeCompiler.GenerateCodeForModule(this.Project, this.Module, selectedCodeTemplate.TemplateCodePlain); FormCodeResult frmREsult = new FormCodeResult(); frmREsult.Result = result; frmREsult.Show(); } }