コード例 #1
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     if (newDataRoot != null)
     {
         this.dataRoot = (global::WebUwp.Core.Models.Collective)newDataRoot;
         return(true);
     }
     return(false);
 }
コード例 #2
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::WebUwp.Core.Models.Collective obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_Id(obj.Id, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0) | (1 << 1))) != 0)
         {
             this.Update_Name(obj.Name, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0) | (1 << 2))) != 0)
         {
             this.Update_Description(obj.Description, phase);
         }
     }
 }