コード例 #1
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     if (newDataRoot != null)
     {
         this.dataRoot = (global::Assignment_4_sem3.Models.CartItem)newDataRoot;
         return(true);
     }
     return(false);
 }
コード例 #2
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::Assignment_4_sem3.Models.CartItem obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_image(obj.image, phase);
             this.Update_name(obj.name, phase);
             this.Update_price(obj.price, phase);
             this.Update_qty(obj.qty, phase);
         }
     }
 }