public void Dispose() { _canvasSetting = null; _zoomSetting = null; _renderSetting = null; _zoomStepByScale = null; _items = null; _xElemRoot = null; _subElem = null; }
private List <ZoomStepByScale> GetZoomStepByScales() { _items = new List <ZoomStepByScale>(); foreach (XElement item in _xElemRoot.Descendants("ZoomStepByScale")) { _zoomStepByScale = new ZoomStepByScale(); _zoomStepByScale.Minscale = JudgeDoubleIsNull(item.Attribute("minscale")); _zoomStepByScale.Maxscale = JudgeDoubleIsNull(item.Attribute("maxscale")); _zoomStepByScale.Steps = (item.Attribute("steps") != null)?Convert.ToInt32(item.Attribute("steps").Value):0; _items.Add(_zoomStepByScale); } return(_items); }