예제 #1
0
        private void Menu_Click(object sender, EventArgs e)
        {
            WinOperationClass P_Menu = new WinOperationClass(); //声明对WinForm窗体进行操作的类对象

            P_Menu.ShowForm((ToolStripMenuItem)sender, this);   //调用类中的方法,完成对窗体中ToolStripMenuItem控件相应项的操作
        }