Ejemplo n.º 1
0
 public static void resetAttribute(AFAttribute attr)
 {
     if (!attr.IsConfigurationItem && attr.Template != null && !attr.Template.IsConfigurationItem)
     {
         attr.ResetToTemplate();
     }
     //if (attr.DataReference != null && attr.DataReferencePlugIn.Name == "PI Point")
     //    attr.DataReference.CreateConfig();
     foreach (AFAttribute childAttr in attr.Attributes)
     {
         resetAttribute(childAttr);
     }
 }