Esempio n. 1
0
        private void LoadFromXmlSchema(string schemaXml)
        {
            // cleanup schema
            Schema.DiscardSchema();

            XmlDocument doc = new XmlDocument();

            doc.LoadXml(schemaXml);
            foreach (XmlElement xmlEl in doc.FirstChild.ChildNodes)            //dimensions
            {
                Olap.Dimension dim = new Olap.Dimension(this.Schema);
                dim.LoadFromXmlSchema(xmlEl, this.Axes[2]);
            }
        }
Esempio n. 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);
        }