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

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

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