Esempio n. 1
0
        private void NewForm()
        {
            frmOther frm = new frmOther();

            ReceiverMethods += frm.ShowCounter;
            frm.Show();
        }
Esempio n. 2
0
        private void NewForm()
        {
            frmOther frm = new frmOther();

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