private void LoadMe(object sender, EventArgs e) { FeeServiceClient feeService = new FeeServiceClient(); 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() { FeeServiceClient feeService = new FeeServiceClient(); 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"; }