Пример #1
0
 private void HandleSaveSuccess(SaveResult saveResult) {
     ShowToast(Severity.Info, string.Format("Saved {0} Todo(s)" + Environment.NewLine, saveResult.Entities.Count()));
     SelectedItem = null;
     QueryAllTodos();
 }
Пример #2
0
 private void LogSaveResult(SaveResult result) {
   var descs = String.Join(", ",
  result.Entities
        .Select(x => (x is TodoItem) ? (x as TodoItem).Description : "")
        .ToArray());
   _logger.Info("Saved " + result.Entities.Count + " change(s): " + descs);
 }