public void ResetPuzzle() { Butt.Available = false; Selected = null; LastSelected = null; InitNodes(); Started = false; Completed.Clear(); RestartLine(); }
public async Task OnAppearing() { var goalsFromDb = await _goalDatabase.GetGoalsAsync(); _morningGoals.Clear(); _afternoonGoals.Clear(); _eveningGoals.Clear(); Completed.Clear(); foreach (var goal in goalsFromDb) { if ((DateTime.Now.Date - goal.LastCompletion.Date).TotalDays == 0) { Completed.Add(goal); } else { AddGoalToToDoList(new GoalViewModel(goal)); } } }
public Task Import(Stream xmlData, bool append) { return(Task.Run(() => { var import = EntitySerializer.Deserialize <ToDoItem[]>(xmlData); if (append) { _db.Todo.Save(import); } else { _db.Todo.DeleteAll(); _db.Todo.Save(import); } _application.CurrentDispatcher.Invoke(() => { Pending.Clear(); Pending.AddRange(_db.Todo.GetUncompleted()); Completed.Clear(); Completed.AddRange(_db.Todo.GetCompleteded()); }); })); }
private void ClearItems() { Total.Clear(); Completed.Clear(); InError.Clear(); }