async void OnSave(object sender, EventArgs e) { var text = TextArea.Text; if (String.IsNullOrEmpty(text)) { return; } var t = new OdotTask { Text = text }; await model.AddTask(t); await Navigation.PopModalAsync(true); }
public async Task DeleteTask(OdotTask task) { await Task.Delay(1); tasks.Remove(task); }
public async Task DeleteTask(OdotTask task) { await db.DeleteAsync(task); }
public async Task AddTask(OdotTask task) { await Task.Delay(1); tasks.Add(task); }
public async Task AddTask(OdotTask task) { await db.InsertAsync(task); }