internal ConformObjectTreeViewItem(int id, int depth, IConformObject conformObject) { base.id = id; base.depth = depth; this.conformObject = conformObject; base.displayName = conformObject.Name; }
internal PropertyViewItem(string activePath, int depth, IConformObject conformObject) { Assert.IsTrue(conformObject is PropertyConformObject); base.id = activePath.GetHashCode(); base.depth = depth; conforms = conformObject.Conforms; propertyConformObject = (PropertyConformObject)conformObject; base.displayName = conformObject.Name; }
private void SetConformObjectRecursive(IConformObject obj, bool value, Type restrictToType) { obj.Conforms = value; foreach (IConformObject data in obj.SubObjects) { if (data.GetType() == restrictToType) { SetConformObjectRecursive(data, value, restrictToType); } } }