public Form1() { InitializeComponent(); puber = new Puber(); puber.OnEvent += TestFunc; }
public Form2(Form1 form1) { InitializeComponent(); puber = new Puber(); puber.OnEvent += form1.TestFunc; }