private void supplierToolStripMenuItem_Click(object sender, EventArgs e) { if (MdiChildren.Length > 0) { return; } var supplierInformation = new SupplierInformationForm { MdiParent = this }; supplierInformation.Show(); }
private void supplierInformationToolStripMenuItem_Click(object sender, EventArgs e) { //SupplierInformationForm aForm=new SupplierInformationForm(); //aForm.ShowDialog(); try { pnlContext.Controls.Clear(); SupplierInformationForm aRawMaterialsItemDetails = new SupplierInformationForm(); aRawMaterialsItemDetails.Parent = this; pnlContext.Controls.Add(aRawMaterialsItemDetails); aRawMaterialsItemDetails.Dock = DockStyle.Fill; } catch (Exception exp) { } }