Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }