Exemplo n.º 1
0
 /// <summary>
 ///     Indicates that the edit was cancelled and that the old state should be restored.
 /// </summary>
 public void CancelEdit()
 {
     City = cache.City;
     Email = cache.Email;
     FirstName = cache.FirstName;
     LastName = cache.LastName;
     Phone = cache.Phone;
     State = cache.State;
     Street1 = cache.Street1;
     Street2 = cache.Street2;
     Zip = cache.Zip;
     cache = null;
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Indicates that the edit completed and that changed fields should be committed.
 /// </summary>
 public void EndEdit()
 {
     cache = null;
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Indicates that the contact will undergo a cancellable edit.
 /// </summary>
 public void BeginEdit()
 {
     cache = new Contact();
     cache.City = City;
     cache.Email = Email;
     cache.FirstName = FirstName;
     cache.LastName = LastName;
     cache.Phone = Phone;
     cache.State = State;
     cache.Street1 = Street1;
     cache.Street2 = Street2;
     cache.Zip = Zip;
 }