private void button1_Click(object sender, EventArgs e)
    {
        process p = new process();

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

        p.Foo();
    }