private void addBusinessBtn_Click(object sender, EventArgs e) { BusinessActions businessOP = new BusinessActions(); businessOP.Text = "Create"; businessOP.ShowDialog(); GetBusinessData(); }
private void businessEditBtn_Click(object sender, EventArgs e) { try { BusinessActions businessOP = new BusinessActions(); businessOP.EditBusiness(Convert.ToInt32(businessNumber.Text)); businessOP.Text = "Edit"; businessOP.ShowDialog(); GetBusinessData(); } catch {} }