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