Ejemplo n.º 1
0
 public void Save(gView.Framework.IO.IPersistStream stream)
 {
     stream.Save("MinValue", MinValue);
     stream.Save("MaxValue", MaxValue);
     stream.Save("Color", Color.ToArgb());
     stream.Save("Legend", Legend);
 }
Ejemplo n.º 2
0
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     MinValue = (double)stream.Load("MinValue", 0.0);
     MaxValue = (double)stream.Load("MaxValue", 0.0);
     Color    = ArgbColor.FromArgb((int)stream.Load("Color", ArgbColor.White.ToArgb()));
     Legend   = (string)stream.Load("Legend", String.Empty);
 }
Ejemplo n.º 3
0
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     _directory = (string)stream.Load("Directory");
     if (_directory == null)
     {
         _directory = "";
     }
 }
Ejemplo n.º 4
0
 public void Save(gView.Framework.IO.IPersistStream stream)
 {
     stream.Save("Symbol", _symbol);
     if (_symbolRotation.RotationFieldName != "")
     {
         stream.Save("SymbolRotation", _symbolRotation);
     }
 }
Ejemplo n.º 5
0
        public void Save(gView.Framework.IO.IPersistStream stream)
        {
            if (_dataset == null)
            {
                return;
            }

            stream.Save("ConnectionString", _dataset.ConnectionString);
        }
Ejemplo n.º 6
0
        public void Save(gView.Framework.IO.IPersistStream stream)
        {
            stream.Save("UseRefScale", _useRefScale);

            foreach (Rule rule in _rules)
            {
                stream.Save("Rule", rule);
            }
        }
Ejemplo n.º 7
0
        public void Load(gView.Framework.IO.IPersistStream stream)
        {
            _dataset = null;
            string connectionString = (string)stream.Load("ConnectionString", String.Empty);

            if (connectionString != String.Empty)
            {
                _dataset = new WMSDataset();
                _dataset.ConnectionString = connectionString;
            }
        }
Ejemplo n.º 8
0
        public void Load(gView.Framework.IO.IPersistStream stream)
        {
            _useRefScale = (bool)stream.Load("UseRefScale", true);

            _rules.Clear();
            Rule rule;

            while ((rule = (Rule)stream.Load("Rule", null, new Rule())) != null)
            {
                _rules.Add(rule);
            }
        }
Ejemplo n.º 9
0
        public void Load(gView.Framework.IO.IPersistStream stream)
        {
            this.Release();

            _valueField    = (string)stream.Load("field", "");
            _defaultSymbol = (ISymbol)stream.Load("default");

            QuantityClass qClass;

            while ((qClass = (QuantityClass)stream.Load("qClass", null, new QuantityClass())) != null)
            {
                _quantityClasses.Add(qClass);
            }
        }
Ejemplo n.º 10
0
        public void Save(gView.Framework.IO.IPersistStream stream)
        {
            stream.Save("field", _valueField);
            stream.Save("default", _defaultSymbol);

            if (_quantityClasses != null)
            {
                foreach (QuantityClass qClass in _quantityClasses)
                {
                    if (qClass != null)
                    {
                        stream.Save("qClass", qClass);
                    }
                }
            }
        }
Ejemplo n.º 11
0
            public void Save(gView.Framework.IO.IPersistStream stream)
            {
                ScaleRendererPersist persist = new ScaleRendererPersist(this);

                persist.Save(stream);
            }
Ejemplo n.º 12
0
 public void Save(gView.Framework.IO.IPersistStream stream)
 {
 }
Ejemplo n.º 13
0
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
 }
Ejemplo n.º 14
0
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     _symbol         = (UniversalGeometrySymbol)stream.Load("Symbol", new UniversalGeometrySymbol(UniversalGeometrySymbol.SymbolType.normal), new UniversalGeometrySymbol(UniversalGeometrySymbol.SymbolType.normal));
     _symbolRotation = (SymbolRotation)stream.Load("SymbolRotation", _symbolRotation, _symbolRotation);
 }
Ejemplo n.º 15
0
 public void WriteMetadata(gView.Framework.IO.IPersistStream stream)
 {
 }
Ejemplo n.º 16
0
 public void Save(gView.Framework.IO.IPersistStream stream)
 {
     stream.Save("Directory", _directory);
 }