Exemplo n.º 1
0
        public CanvasSetting Parse(string fname)
        {
            _xElemRoot = XElement.Load(fname, LoadOptions.None);
            string name = (_xElemRoot.Attribute("name") != null) ? _xElemRoot.Attribute("name").Value : string.Empty;

            _canvasSetting = new CanvasSetting(name, GetTileSetting(), GetRenderSetting(), GetZoomSetting());
            return(_canvasSetting);
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     _canvasSetting   = null;
     _zoomSetting     = null;
     _renderSetting   = null;
     _zoomStepByScale = null;
     _items           = null;
     _xElemRoot       = null;
     _subElem         = null;
 }
Exemplo n.º 3
0
        public CanvasSetting Parse(string fname)
        {
            _xElemRoot = XElement.Load(fname, LoadOptions.None);
            string name = (_xElemRoot.Attribute("name") != null) ? _xElemRoot.Attribute("name").Value : string.Empty;
            float  xexpand, yexpand;

            GetExpandValues(out xexpand, out yexpand);
            _canvasSetting = new CanvasSetting(name, GetCacheSetting(), GetTileSetting(), GetRenderSetting(), GetZoomSetting(), xexpand, yexpand);
            return(_canvasSetting);
        }