Example #1
0
        private void LoadMe(object sender, EventArgs e)
        {
            IFeeService feeService = new FeeService();

            gradeLevels = new List <GradeLevel>(feeService.GetAllGradeLevels());
            schoolYears = new List <SchoolYear>(feeService.GetLastFiveSY());

            cmbGradeLevel.DataSource    = gradeLevels;
            cmbGradeLevel.ValueMember   = "GradeLev";
            cmbGradeLevel.DisplayMember = "Description";

            cmbSY.DataSource    = schoolYears;
            cmbSY.ValueMember   = "SY";
            cmbSY.DisplayMember = "SY";
        }
        private void LoadMe()
        {
            IFeeService feeService = new FeeService();

            ExistingFees = new List <Fee>(feeService.GetAllFees());
            gradeLevels  = new List <GradeLevel>(feeService.GetAllGradeLevels());
            schoolYears  = new List <SchoolYear>(feeService.GetLastFiveSY());

            cmbGradeLevel.DataSource    = gradeLevels;
            cmbGradeLevel.ValueMember   = "GradeLev";
            cmbGradeLevel.DisplayMember = "Description";
            cmbSY.DataSource            = schoolYears;
            cmbSY.ValueMember           = "SY";
            cmbSY.DisplayMember         = "SY";

            txtAmount.Text      = "0.00";
            txtDescription.Text = String.Empty;
            txtDiscount.Text    = "0";
            txtNumPay.Text      = "1";
        }