Exemple #1
0
        public void Load(IO.IPersistStream stream)
        {
            this.JoinName = (string)stream.Load("joinname", "Join");
            this.Field    = (string)stream.Load("field", String.Empty);
            this.JoinType = (joinType)stream.Load("jointype", (int)joinType.LeftOuterJoin);

            _joinLayerId   = (int)stream.Load("joinlayerid", -1);
            this.JoinField = (string)stream.Load("joinfield", String.Empty);
        }
        public void Load(IO.IPersistStream stream)
        {
            this.JoinName = (string)stream.Load("joinname", "Join");
            this.Field    = (string)stream.Load("field", String.Empty);

            this.JoinConnectionString = (string)stream.Load("joinconnectionstring", String.Empty);
            this.JoinTable            = (string)stream.Load("jointable", String.Empty);
            this.JoinField            = (string)stream.Load("joinfield", String.Empty);
            _fields   = stream.Load("Fields", null, new Fields()) as Fields;
            _joinType = (joinType)stream.Load("jointype", (int)joinType.LeftOuterJoin);
        }
Exemple #3
0
        public void Save(IO.IPersistStream stream)
        {
            stream.Save("joinname", this.JoinName);
            stream.Save("field", this.Field);
            stream.Save("jointype", (int)this.JoinType);

            if (_joinLayer != null)
            {
                stream.Save("joinlayerid", _joinLayer.ID);
            }
            stream.Save("joinfield", this.JoinField);
        }
Exemple #4
0
        public void Load(IO.IPersistStream stream)
        {
            this.RelationName = (string)stream.Load("RelationName");

            this.LeftTable      = DatasetElementById((string)stream.Load("LeftMap"), (int)stream.Load("LeftTableId", (int)-1));
            this.LeftTableField = (string)stream.Load("LeftTableField");

            this.RightTable      = DatasetElementById((string)stream.Load("RightMap"), (int)stream.Load("RightTableId", (int)-1));
            this.RightTableField = (string)stream.Load("RightTableField");

            this.LogicalOperator = (string)stream.Load("LogicalOperator", "=");
        }
        public void Save(IO.IPersistStream stream)
        {
            stream.Save("joinname", this.JoinName);
            stream.Save("field", this.Field);

            stream.Save("joinconnectionstring", this.JoinConnectionString);
            stream.Save("jointable", this.JoinTable);
            stream.Save("joinfield", this.JoinField);
            if (_fields != null)
            {
                stream.Save("Fields", _fields);
            }
            stream.Save("jointype", (int)_joinType);
        }
Exemple #6
0
        public void Load(IO.IPersistStream stream)
        {
            _type               = (chartType)stream.Load("Type", (int)chartType.Pie);
            _sizeType           = (sizeType)stream.Load("SizeType", (int)sizeType.ConstantSize);
            _labelPriority      = (SimpleLabelRenderer.labelPriority)stream.Load("labelPriority", (int)SimpleLabelRenderer.labelPriority.normal);
            _size               = (double)stream.Load("Size", 50D);
            _valueEquatesToSize = (double)stream.Load("ValueEquatesToSize", 100D);

            ValueMapRendererSymbol sym;

            while ((sym = (ValueMapRendererSymbol)stream.Load("ChartSymbol", null, new ValueMapRendererSymbol())) != null)
            {
                this.SetSymbol(sym._key, sym._symbol);
            }
            _outlineSymbol = stream.Load("Outline", null) as ILineSymbol;
        }
Exemple #7
0
        public void Save(IO.IPersistStream stream)
        {
            stream.Save("Type", (int)_type);
            stream.Save("SizeType", (int)_sizeType);
            stream.Save("labelPriority", (int)_labelPriority);
            stream.Save("Size", _size);
            stream.Save("ValueEquatesToSize", _valueEquatesToSize);

            foreach (string key in _symbolTable.Keys)
            {
                ValueMapRendererSymbol sym = new ValueMapRendererSymbol(key, (ISymbol)_symbolTable[key]);
                stream.Save("ChartSymbol", sym);
            }
            if (_outlineSymbol != null)
            {
                stream.Save("Outline", _outlineSymbol);
            }
        }
Exemple #8
0
        public void Save(IO.IPersistStream stream)
        {
            stream.Save("RelationName", this.RelationName);

            IMap leftMap = MapByDatasetElement(this.LeftTable);

            if (leftMap != null)
            {
                stream.Save("LeftMap", leftMap.Name);
                stream.Save("LeftTableId", this.LeftTable.ID);
                stream.Save("LeftTableField", this.LeftTableField);
            }
            IMap rightMap = MapByDatasetElement(this.RightTable);

            if (rightMap != null)
            {
                stream.Save("RightMap", rightMap.Name);
                stream.Save("RightTableId", this.RightTable.ID);
                stream.Save("RightTableField", this.RightTableField);
            }

            stream.Save("LogicalOperator", this.LogicalOperator);
        }