private void btnRent_Click(object sender, EventArgs e) { if (!((frmMain)this.MdiParent).focusForm("frmRent")) { frmRent FrmRent = new frmRent(getSelectedBook()); FrmRent.MdiParent = this.MdiParent; FrmRent.StartPosition = FormStartPosition.CenterParent; FrmRent.Show(); } }
private void openRent() { if (!((frmMain)this.MdiParent).focusForm("frmRent")) { frmRent FrmRent = new frmRent(getSelectedRent()); FrmRent.MdiParent = this.MdiParent; FrmRent.StartPosition = FormStartPosition.CenterParent; FrmRent.Show(); } }