private void button1_Click(object sender, EventArgs e) { process p = new process(); p.Progress += p_Progress; p.Foo(); }
private void button1_Click(object sender, EventArgs e) { process p = new process(this); p.Foo(); }