Example #1
0
        public void LoadSY()
        {
            gvSY.DataSource = null;
            ISchoolYearService syService = new SchoolYearService();
            string message = String.Empty;
            try
            {
                var sy = syService.GetAllSY();
                SYList = new List<SchoolYear>(sy);
                gvSY.DataSource = SYList;
                gvSY.Refresh();

                if (gvSY.RowCount != 0)
                    gvSY.Rows[0].IsSelected = true;


                SYcurrent = SYList.Find(x => x.CurrentSY == true);
            }
            catch (Exception ex)
            {
                message = "Error Loading List of School Years";
                MessageBox.Show(ex.ToString());
            }

        }
Example #2
0
        public List <SchoolYear> GetAllSY()
        {
            SchoolYearService sys = new SchoolYearService();

            return(sys.GetAllSY());
        }
Example #3
0
 public List<SchoolYear> GetAllSchoolYears()
 {
     SchoolYearService s = new SchoolYearService();
     return s.GetAllSY();
 }
Example #4
0
 public List<SchoolYear> GetLastFiveSY()
 {
     SchoolYearService sy = new SchoolYearService();
     return sy.GetAllSY();
 }
Example #5
0
        public List <SchoolYear> GetLastFiveSY()
        {
            SchoolYearService sy = new SchoolYearService();

            return(sy.GetAllSY());
        }