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