コード例 #1
0
 private async void CreateItemCommandDelegate()
 {
     var item = new Dummy() { Name = this.Name };
     await factory.Dummy.SaveAsync(item);
     Name = string.Empty;
     RaisePropertyChanged(nameof(Name));
     Dummies.Clear();
     PopulateDummies();
 }
コード例 #2
0
 private async void DeleteItemCommandDelegate(Dummy item)
 {
     await factory.Dummy.DeleteAsync(item);
     Dummies.Clear();
     PopulateDummies();
 }