private void mnuAddSupplier_Click(object sender, EventArgs e) { frmSuppliers form1 = new frmSuppliers(); form1.MdiParent = this; //Form2.Enabled = true; //Form2.BringToFront(); //menuMain.Enabled = false; form1.Show(); form1.Activate(); }
//next button handling - Quynh Nguyen private void btnNext_Click(object sender, EventArgs e) { try { this.Close(); frmSuppliers form1 = new frmSuppliers(); form1.setEditedSupplier((Supplier)this.listSupplier.SelectedItem); form1.Show(); form1.Activate(); } catch (Exception ex) { Utils.ErrorManager(ex, "", "frmEditSuppliers.btnNext_Click()"); } }