private void addSupplierBtn_Click(object sender, EventArgs e) { clickAddButton = true; AddSuppliersFrm SupplierData = new AddSuppliersFrm(); SupplierData.AddButton = clickAddButton; SupplierData.ShowDialog(); Display(); }
private void modifySupplierBtn_Click(object sender, EventArgs e) { AddSuppliersFrm updateSupplier = new AddSuppliersFrm(); //updateSupplier.context = context; updateSupplier.currentSupplier = currentSupplier; updateSupplier.AddButton = false; updateSupplier.ShowDialog(); Display(); //context.SaveChanges(); //Display(); }