//图书检索菜单Click事件处理 private void 图书检索ToolStripMenuItem_Click(object sender, EventArgs e) { if (this.checkchildfrm("frmSearchBook") == true) { return; } frmSearchBook book = new frmSearchBook(); book.MdiParent = this; book.Show(); }
private void tsbtnSearch_Click(object sender, EventArgs e) //图书查询 { if (this.checkchildfrm("frmSearchBook") == true) //检测该窗口是否处于打开状态 { return; //窗口已打开,返回 } frmSearchBook book = new frmSearchBook(); //实例化图书查询窗体 book.MdiParent = this; //设置为当前窗体的子窗体 book.Show(); //图书查询窗体以非模式对话框的方式打开 }
//图书查询按钮Click事件处理 private void tsbtnSearch_Click(object sender, EventArgs e) { if (this.checkchildfrm("frmSearchBook") == true) { return; } frmSearchBook book = new frmSearchBook(); book.MdiParent = this; //设置为当前窗体的子窗体 book.Show(); }