private void btnShowOtherForm_Click(object sender, EventArgs e)
 {
     frmOther frm = new frmOther();
     //将主窗体的方法“挂接”到从窗体对象上
     frm.CallBackMethod = this.ShowCounter;
     //在屏幕上显示从窗体
     frm.Show();
 }
Exemple #2
0
        private void btnShowOtherForm_Click(object sender, EventArgs e)
        {
            frmOther frm = new frmOther();

            //将主窗体的方法“挂接”到从窗体对象上
            frm.CallBackMethod = this.ShowCounter;
            //在屏幕上显示从窗体
            frm.Show();
        }