public override bool Initialize(object component, TreeGridDesignerColumnDescriptor[] columns) { if (!base.Initialize(component, columns)) { return false; } var mappingConceptualTypeMapping = component as MappingConceptualEntityType; if (mappingConceptualTypeMapping != null) { _mappingConceptualTypeMapping = mappingConceptualTypeMapping; } return true; }
// <summary> // ITreeGridDesignerInitializeBranch // </summary> public override bool Initialize(object component, TreeGridDesignerColumnDescriptor[] columns) { if (!base.Initialize(component, columns)) { return false; } _mappingConceptualTypeMapping = component as MappingConceptualEntityType; if (_mappingConceptualTypeMapping != null) { _columns = columns; PopulateHeaders(true); return true; } return false; }
//private bool _registeredEventHandlers = false; internal TableBranch(MappingConceptualEntityType mappingConceptualTypeMapping, TreeGridDesignerColumnDescriptor[] columns) : base(mappingConceptualTypeMapping, columns) { _mappingConceptualTypeMapping = mappingConceptualTypeMapping; }