private void suppliersBtn_Click(object sender, EventArgs e) { this.Hide(); SupplierForm supplierForm = new SupplierForm(db, this); supplierForm.ShowDialog(); }
public AddNewSupplierForm(RoofingCompanyEntities db, SupplierForm form) { InitializeComponent(); this.db = db; this.previousForm = form; }