private void button_Save_Click(object sender, EventArgs e) { usingPolicy.AddPolicyInfo(phFirstName, phLastName, street, city, state, zIP, benefFirstName, benefLastName); PolicyPage policy = new PolicyPage(usingAgent, searchPage, usingPolicy); policy.Show(); SuccessPage success = new SuccessPage(); success.Show(); this.Close(); previousPage.Close(); }
private void button_Save_Click(object sender, EventArgs e) { completePolicy.saveToDataBase(); Home home = new Home(usingAgent); home.Show(); SuccessPage success = new SuccessPage(); success.Show(); previousPage.Close(); this.Close(); prepreviousPage.Close(); }