示例#1
0
        public StudentViewModel()
        {
            _deleteCommand     = new Command(OnDelete);
            _updateCommand     = new Command(OnUpdate);
            _addCommand        = new Command(OnAdd);
            _pageChangeCommand = new Command(OnPageChange);

            _firstpage  = 1; _secondpage = 2; _thirdpage = 3;
            _prev       = "‹"; _next = "";
            _firstcolor = _secondcolor = _thirdcolor = Brushes.Black;
            _total      = (int)studentDAO.Count();
            _pageSize   = _total / _limit;
            _count      = $"{_total} adet kayıt var";
            List.Clear();
            foreach (var item in studentDAO.Find(1, _limit, _pageSize))
            {
                List.Add(item);
            }

            //BindData();
        }
示例#2
0
 public IEnumerable <Student> GetAllStudents()
 {
     return(StudentRepo.Find());
 }
 public static Student Find(Guid?id = null, string email = null)
 {
     return(StudentDAO.Find(id, email));
 }
 public static Student FindLoggedUser()
 {
     return(StudentDAO.Find(email: User.Logged.Email));
 }
示例#5
0
 public IEnumerable <Student> GetAllEtudiants()
 {
     return(studentRepo.Find());
 }