private void button1_Click(object sender, EventArgs e) { TriMesh mesh = GlobalData.Instance.TriMesh; this.tetgen = new TetGen(); this.tetgen.Exited += tetgen_Exited; this.tetgen.OutputDataReceived += tetgen_OutputDataReceived; this.tetgen.RunAsync(mesh, this.textBox1.Text); this.button1.Enabled = false; }