Example #1
0
 public IContact GetNewContact()
 {
     IContact result = new Contact
     {
         Id = Guid.NewGuid(),
         Created = System.DateTime.Now
     };
     Context.Contact.InsertOnSubmit(result as Contact);
     return result;
 }
Example #2
0
 private void OnContactListRemove(Contact entity)
 {
     SendPropertyChanging(null);
     entity.Client = null;
     SendPropertyChanged(null);
 }
Example #3
0
 private void OnContactListAdd(Contact entity)
 {
     SendPropertyChanging(null);
     entity.Client = this;
     SendPropertyChanged(null);
 }