Exemple #1
0
 private void button_Submit_Click(object sender, EventArgs e)
 {
     if (textBox_ShowPolicyholderFirstName.Text == "" || textBox_ShowPolicyholderLastName.Text == "" || textBox_ShowAddressStreet.Text == "" ||
         textBox_AddressCity.Text == "" || comboBox_AddressState.Text == "" || textBox_AddressZip.Text == "" || textBox_BeneficiaryFirstName.Text == "" ||
         textBox_BeneficiaryLastName.Text == "")
     {
         AddPolicyWarning warning = new AddPolicyWarning();
         warning.Show();
     }
     else
     {
         inPolicy.AddPolicyInfo(textBox_ShowPolicyholderFirstName.Text, textBox_ShowPolicyholderLastName.Text, textBox_ShowAddressStreet.Text,
                                textBox_AddressCity.Text, comboBox_AddressState.Text, textBox_AddressZip.Text, textBox_BeneficiaryFirstName.Text, textBox_BeneficiaryLastName.Text);
         AddPolicyMakeSure makeSure = new AddPolicyMakeSure(true, inPolicy, this, usingAgent, previousPage);
         makeSure.Show();
     }
 }
Exemple #2
0
        private void button_Cancel_Click(object sender, EventArgs e)
        {
            AddPolicyMakeSure makeSure = new AddPolicyMakeSure(false, inPolicy, this, usingAgent, previousPage);

            makeSure.Show();
        }