Exemple #1
0
 public void LoadData(List <grade> SearchedGrade)
 {
     listGrade.Clear();
     foreach (grade g in SearchedGrade)
     {
         ListGrade.Add(g);
     }
 }
Exemple #2
0
        public void LoadData()
        {
            if (listGrade != null)
            {
                ListGrade.Clear();
            }
            else
            {
                listGrade = new ObservableCollection <grade>();
            }
            List <grade> grades = DataProvider.Ins.DB.grades.ToList();

            foreach (grade g in grades)
            {
                ListGrade.Add(g);
            }
        }