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

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

            //从窗体对象将ShowCounter方法挂接到MyClick事件上,响应这个事件
            MyClick += frm.ShowCounter;
            frm.Show();
        }
Exemplo n.º 3
0
 private void NewForm()
 {
     frmOther frm = new frmOther();
     MyClick += frm.ShowCounter;
     frm.Show();
 }