private void 查询所有信息ToolStripMenuItem_Click(object sender, EventArgs e) { NewMain.Nform.logClass.write("执行查询所有信息函数"); Form form = new InfoSearch(); ToolStripMenuItem menu = sender as ToolStripMenuItem; Add_TabPage(menu.Text, form); }
private void button1_Click(object sender, EventArgs e) { Form infoSearch = new InfoSearch(); infoSearch.ShowDialog(); }