//图书归还 private void btnReturnBook_Click(object sender, EventArgs e) { FrmReturnBook returnBook = new FrmReturnBook(); EmbedForm(returnBook); this.lblOperationName.Text = "图书归还"; }
//图书归还 private void TsmiReturnBook_Click(object sender, EventArgs e) { if (this.spContainer.Panel2.Controls.Count > 0 && this.spContainer.Panel2.Controls[0] is FrmReturnBook) { return; } this.lblOperationName.Text = "图书归还"; FrmReturnBook objFrm = new FrmReturnBook(); ShowNewForm(objFrm); }