private void button1_Click(object sender, EventArgs e) { var test = new Code.CacheTest(); int n = Convert.ToInt32(txtProgress.Text); int n2 = Convert.ToInt32(txtNum.Text) * n; var thread = new Code.MultiThreadTest(test, n, n2); thread.Run(); }