示例#1
0
        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);
        }
示例#2
0
        public async Task DeleteTask(OdotTask task)
        {
            await Task.Delay(1);

            tasks.Remove(task);
        }
示例#3
0
 public async Task DeleteTask(OdotTask task)
 {
     await db.DeleteAsync(task);
 }
示例#4
0
        public async Task AddTask(OdotTask task)
        {
            await Task.Delay(1);

            tasks.Add(task);
        }
示例#5
0
 public async Task AddTask(OdotTask task)
 {
     await db.InsertAsync(task);
 }