private void btnOrderDetails_Click(object sender, EventArgs e) { Form form = Application.OpenForms["MDIForm"]; OrderDetailForm detailForm = new OrderDetailForm(int.Parse(txtOrderId.Text)); detailForm.MdiParent = form; detailForm.Show(); }
private void btnOrderManager_Click(object sender, EventArgs e) { Form form = Application.OpenForms["MDIForm"]; OrderDetailForm detailForm = new OrderDetailForm(); detailForm.MdiParent = form; detailForm.Show(); }