Beispiel #1
0
        void AddTask(object sender, EventArgs e)
        {
            var newTask = new TODOItem();
            var newPage = new TodoPage();
            newPage.BindingContext = newTask;

            Navigation.PushAsync(newPage);
        }
Beispiel #2
0
 public int SaveItem(TODOItem item)
 {
     lock (locker)
     {
         if (item.ID != 0)
         {
             database.Update(item);
             return item.ID;
         }
         else
         {
             return database.Insert(item);
         }
     }
 }