private void btRun_Click(object sender, EventArgs e) { btRun.Enabled = false; string code = tbCode.Text; bool success = CompileCode(code); // if (success) // { // TccHelper.RunByTcc(code); // } // else // { // splitContainer2.SplitterDistance = (int) (splitContainer2.Height * 4.0 / 5.0); // } splitContainer2.SplitterDistance = (int)(splitContainer2.Height * 4.0 / 5.0); TccHelper.RunByTcc(code); btRun.Enabled = true; }