/// <summary> /// btnOpenSupplierFrm_Click /// Opens an instance of FrmAddSupplier /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnOpenSupplierFrm_Click(object sender, EventArgs e) { FrmAddSupplier supplierForm = new FrmAddSupplier(business); supplierForm.MdiParent = this.MdiParent; supplierForm.Show(); }
private void supplierToolStripMenuItem_Click(object sender, EventArgs e) { FrmAddSupplier childForm = new FrmAddSupplier(business); childForm.MdiParent = this; childForm.Text = "Add or Update a Supplier " + childFormNumber++; childForm.Show(); }