private void NewForm() { frmOther frm = new frmOther(); ReceiverMethods += frm.ShowCounter; frm.Show(); }
private void NewForm() { frmOther frm = new frmOther(); //从窗体将自己的ShowCounter方法挂接到主窗体的委托变量ReceiverMethods上 ReceiverMethods += frm.ShowCounter; frm.Show(); }