public ItemDetailViewModel(TrainingEntity item = null)
 {
     if (item != null)
     {
         Title = item.Text;
         Item = item;
     }
 }
示例#2
0
 async Task EditItem(TrainingEntity item)
 {
     //update
     //Items.Add(item);
     await DataStore.UpdateItemAsync(item);
 }
示例#3
0
 async Task AddExercise(TrainingEntity item)
 {
     await DataStore.UpdateItemAsync(item);
 }
示例#4
0
 async Task AddItem(TrainingEntity item)
 {
     Items.Add(item);
     await DataStore.AddItemAsync(item);
 }