private void _initiation() { demo_list = new ObservableCollection <string>(); full_list = new List <string>(); temporary_seed(); topPagination = new VMPagination(); bottomPagination = new VMPagination(); PaginationModel topPaginationModel = new PaginationModel(full_list.Count, 10); PaginationModel bottomPaginationModel = new PaginationModel(2500, 30); topPagination.seed(topPaginationModel); bottomPagination.seed(bottomPaginationModel); topPagination.pagination.PropertyChanged += Pagination_PropertyChanged; processPage(null); }
private void _initiation() { full_list = RecipeDAO.getDataFromJson(""); favorite_list = RecipeDAO.getFavoriteList(); top_list = new ObservableCollection <Recipe>(); center_list = new ObservableCollection <Recipe>(); bottom_list = new ObservableCollection <Recipe>(); pagination = new VMPagination(); PaginationModel model = new PaginationModel(full_list.Count(), 12); pagination.seed(model); pagination.pagination.PropertyChanged += Pagination_PropertyChanged; processPage(null); }