示例#1
0
        private void a_Click(object sender, EventArgs e)
        {
            int    m      = (int.Parse(m1.Text) + (int.Parse(m2.Text) - 1)) / 2;
            Thread thread = new Thread(() => { Tools.Merge(int.Parse(m1.Text), m, int.Parse(m2.Text)); MessageBox.Show("Done"); });

            thread.Start();
        }