Example #1
0
        public SchemaMembers GetSchemaMembers(Hierarchy hier, string[] UniqueNames)
        {
            System.Xml.XmlElement parentEl = GetSchemaMembers(UniqueNames);

            SchemaMembers smems = new SchemaMembers(hier, null);

            foreach (System.Xml.XmlElement childEl in parentEl.ChildNodes)
            {
                SchemaMember child = new SchemaMember(hier);
                child.LoadFromXmlSchema(childEl);
                smems.Add(child, false);
            }
            return(smems);
        }
Example #2
0
        //private bool _isAggregated=false;


        internal Hierarchy(Dimension dim)
        {
            _dimension   = dim;
            _dataMembers = new DataMembers(this);
            _dataMembers.SetCollectionType(typeof(DataMember), false);             // allowed only DataMembers , not even inherited

            _calcMembers   = new CalculatedMembers(this);
            _schemaMembers = new SchemaMembers(this, null);

            _dataMembers.BeforeAdd        += new ObjectEventHandler(_dataMembers_BeforeAdd);
            _dataMembers.BeforeRemove     += new ObjectEventHandler(_dataMembers_BeforeRemove);
            _dataMembers.BeforeChangeItem += new ObjectEventHandler(_dataMembers_BeforeChange);

            _calcMembers.BeforeAdd        += new ObjectEventHandler(_calcMembers_BeforeAdd);
            _calcMembers.BeforeRemove     += new ObjectEventHandler(_calcMembers_BeforeRemove);
            _calcMembers.BeforeChangeItem += new ObjectEventHandler(_calcMembers_BeforeChange);
        }
 internal SchemaMember(Hierarchy hier) : base(hier)
 {
     _children = new SchemaMembers(hier, this);
 }