private void ButtonTest2_Click(object sender, EventArgs e) { var test = new Test2(); pictureBox1.Image = test.Run(); }