Example #1
0
    public void BindingVestingPlans()
    {
        Employer employer = getPageEmployer();

        if (employer != null)
        {
            IList <VestingPlan> vestingPlans;
            if (TerminationCategory != null)
            {
                vestingPlans = employer.GetVestingPlans(TerminationCategory, DateTime.Today);
            }
            else
            {
                vestingPlans = employer.GetVestingPlans(DateTime.Today);
            }
            cboVesting.DataSource    = vestingPlans;
            cboVesting.TextField     = "Title";
            cboVesting.ValueField    = "VestingPlanID";
            cboVesting.SelectedIndex = 0;
            cboVesting.DataBind();
        }
    }