Esempio n. 1
0
        /***********************************************************************************/
        /*PUBLIC METHOD*/
        /**********************************************************************************/
        public void LoadTuitionFee()
        {
            //clear list
            tuitionFees.Clear();
            //pass value to list
            tuitionFees = tuitionFee.Load();

            //loop through load it to list view
            foreach (var item in tuitionFees)
            {
                if (item.Status.Equals("1"))
                {
                    double a;
                    a = Convert.ToDouble(item.TuitionFeeAmount);
                    lblTuition.Text = a.ToString("n");
                }
            }
        }//End LoadRecords
Esempio n. 2
0
        //Internal Methods
        public void LoadRecords()
        {
            //clear list
            //listView1.Items.Clear();
            dgvTuitionFees.Rows.Clear();

            tuitionFees.Clear();

            //pass value to list
            tuitionFees = tuitionFee.Load();

            //loop through load it to list view
            foreach (var item in tuitionFees)
            {
                //Load to datagridView
                dgvTuitionFees.Rows.Add(item.Id, item.TuitionFeeName, item.TuitionFeeAmount, item.TuitionFeeDescription);
            }
        }//End LoadRecords()