void resetPendingQuizzes(){ String icon = "icons/tareaincompleta.png"; List<TaskViewItem> _currentTask = new List<TaskViewItem> (); //var vm = ViewModel as MainViewModel; int i = 0; foreach (var quiz in vm.PendingQuizzesList) { var newinfo = new TaskViewItem() { //CursoName = vm.LearningOjectsList[i].lo.title, //Index = i Icon = icon, Tarea= vm.PendingQuizzesList[i].content, Index = i }; _currentTask.Add(newinfo); i++; } task.ListaTareasIncompletas = _currentTask; }
void loadCompleteQuizzes(){ String icon = "icons/tareacompleta.png"; List<TaskViewItem> _currentTask = new List<TaskViewItem> (); //var vm = ViewModel as MainViewModel; int i = 0; foreach (var quiz in vm.CompletedQuizzesList) { var newinfo = new TaskViewItem() { Icon = icon, Tarea= vm.CompletedQuizzesList[i].content, Index = i }; _currentTask.Add(newinfo); i++; } task.ListaTareasCompletas = _currentTask; }