Example #1
0
        private void CreateBenefit_Click(object sender, EventArgs e)   //Creates NEW Benefit
        {
            FormCreateBenefit popUpForm = new FormCreateBenefit();

            popUpForm.ShowDialog();
            UpdateBenefits();
        }
 private void CreateBenefit_Click(object sender, EventArgs e)   //Creates NEW Benefit
 {
     if (comboBox1.SelectedIndex == 0)
     {
         FormCreateBenefit popUpForm = new FormCreateBenefit();
         popUpForm.ShowDialog();
         UpdateBenefits();
     }
     else if (comboBox1.SelectedIndex == 1)
     {
         if (listBox1.SelectedIndex != -1)
         {
             FormCreatePlan popUpForm = new FormCreatePlan(listBox1.SelectedIndex);
             popUpForm.ShowDialog();
         }
         else
         {
             FormCreatePlan popUpForm = new FormCreatePlan();
             popUpForm.ShowDialog();
         }
         UpdateBenefits();
     }
 }