示例#1
0
        public override void Dispose()
        {
            if (_resSvc != null)
            {
                _resSvc.Dispose();
                _resSvc = null;
            }

            if (_featSvc != null)
            {
                _featSvc.Dispose();
                _featSvc = null;
            }

            if (_drawSvc != null)
            {
                _drawSvc.Dispose();
                _drawSvc = null;
            }

            if (_renderSvc != null)
            {
                _renderSvc.Dispose();
                _renderSvc = null;
            }

            if (_tileSvc != null)
            {
                _tileSvc.Dispose();
                _tileSvc = null;
            }
        }
示例#2
0
        private MgdDrawingService GetDrawingService()
        {
            if (_drawSvc == null)
                _drawSvc = (MgdDrawingService)_fact.CreateService(MgServiceType.DrawingService);

            return _drawSvc;
        }