public void Load(IPersistStream stream) { string mapName = (string)stream.Load("map", ""); if (_maps != null) { foreach (IMap map in _maps) { if (map.Name == mapName) { this.Map = (Map)map; break; } } } double?minx = (double?)stream.Load("minx"); if (minx != null) { _envelope = new Envelope( (double)minx, (double)stream.Load("miny", 0.0), (double)stream.Load("maxx", 0.0), (double)stream.Load("maxy", 0.0)); } if (this.Map != null) { TOC objInst = new TOC(this.Map); objInst.Modifier = TOCModifier.Private; _toc = (TOC)stream.Load("ITOC", null, objInst); if (_toc == null) { objInst.Dispose(); } _displayRotation = (double)stream.Load("DisplayRotation", (double)0.0); } }