Пример #1
0
 /// <summary>
 /// Clone
 /// </summary>
 /// <param name="articleView"></param>
 public PaypalView(PaypalView paypallView)
 {
     this.id           = paypallView.id;
     this.apiUserName  = paypallView.apiUserName;
     this.apiPassword  = paypallView.apiPassword;
     this.apiSignature = paypallView.apiSignature;
     this.useSandbox   = paypallView.useSandbox;
 }
Пример #2
0
 /// <summary>
 /// ArticleView merge
 /// </summary>
 /// <param name="articleView"></param>
 public void Restore(PaypalView original)
 {
     this.id           = original.id;
     this.apiUserName  = original.apiUserName;
     this.apiPassword  = original.apiPassword;
     this.apiSignature = original.apiSignature;
     this.useSandbox   = original.useSandbox;
 }
Пример #3
0
 /// <summary>
 /// 'Cancel' button is clicked
 /// </summary>
 public void CancelEdit()
 {
     Restore(cache);
     cache = null;
 }
Пример #4
0
 /// <summary>
 /// 'Edit' button is clicked
 /// Due to binding, all UI changed will be mapped to the object, so we need make a copy of object before edit in case user wants to cancel the editing
 /// </summary>
 public void BeginEdit()
 {
     cache = new PaypalView(this);
 }