Пример #1
0
 public static DBRecord Update(this DBRecord record, TodoItem t)
 {
     record.SetObject(new NSString(t.Name), "Title");
     record.SetObject(new NSString(t.Notes), "Description");
     record.SetObject(new NSString(t.Done.ToString()), "IsDone");
     return(record);
 }
Пример #2
0
 public static DBRecord Update(this DBRecord record, Task t)
 {
     record.SetObject(new NSString(t.Title), "Title");
     record.SetObject(new NSString(t.Description), "Description");
     record.SetObject(new NSString(t.IsDone.ToString()), "IsDone");
     return(record);
 }