Exemplo n.º 1
0
 public AChildList GetChildList()
 {
     if (FieldManager.FieldExists(ChildListProperty))
     {
         return(ReadProperty <AChildList>(ChildListProperty));
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 protected override void DataPortal_Update()
 {
     if (FieldManager.FieldExists(ManagedChildProperty))
     {
         ManagedChild.Update();
     }
     if (FieldManager.FieldExists(ManagedChildListProperty))
     {
         ManagedChildList.Update();
     }
 }
Exemplo n.º 3
0
 protected override void DataPortal_Insert()
 {
     //FieldManager.UpdateChildren();
     if (FieldManager.FieldExists(ManagedChildProperty))
     {
         ManagedChild.Insert();
     }
     if (FieldManager.FieldExists(ManagedChildListProperty))
     {
         ManagedChildList.Update();
     }
 }
Exemplo n.º 4
0
 private void Child_Update(List <DataAccess.DataModels.DistinguishingFeature> list)
 {
     using (BypassPropertyChecks)
     {
         var feature = new DataAccess.DataModels.DistinguishingFeature();
         feature.Id          = Id;
         feature.Description = Description;
         if (FieldManager.FieldExists(PhotoReference))
         {
             feature.FileReference = new DataAccess.DataModels.FileReference();
             DataPortal.UpdateChild(FileReference, feature.FileReference);
         }
         list.Add(feature);
     }
 }
Exemplo n.º 5
0
 bool IManageProperties.FieldExists(Core.IPropertyInfo property)
 {
     return(FieldManager.FieldExists(property));
 }
Exemplo n.º 6
0
        public void FieldExistsTest5()
        {
            TurnSystem.InitializeData();

            Assert.AreEqual(false, FieldManager.FieldExists(new Vector3(11, 0, 11)));
        }
Exemplo n.º 7
0
        public void FieldExistsTest4()
        {
            TurnSystem.InitializeData();

            Assert.AreEqual(true, FieldManager.FieldExists(new Vector3(10, 0, 10)));
        }