Beispiel #1
0
        public void Dispose()
        {
            viewControl.GetCachePackage().ClearSchedulers();
            UIPositionManager uIPositionManager = viewControl.GetUIPositionManager();

            uIPositionManager.SetPositionMemory(null);
            uIPositionManager.GetSMPos().setPosition(new LatLonZoom(0.0, 0.0, 0));
            uIPositionManager.switchFree();
            viewControl.GetSMViewerControl().ClearLayers();
            viewControl.SetOptionsPanelVisibility(OptionsPanelVisibility.Nothing);
            viewControl.GetLegendPanel().Configure(null, null);
            viewControl.setDisplayedRegistration(null);
            legend = null;
        }
        public void Dispose()
        {
            UIPositionManager uIPositionManager = viewControl.GetUIPositionManager();

            uIPositionManager.switchFree();
            uIPositionManager.SetPositionMemory(null);
            uIPositionManager.GetSMPos().setPosition(new LatLonZoom(0.0, 0.0, 0));
            viewControl.GetSMViewerControl().ClearLayers();
            viewControl.SetOptionsPanelVisibility(OptionsPanelVisibility.Nothing);
            viewControl.GetSourceMapInfoPanel().Configure(null);
            viewControl.GetSourceMapInfoPanel().Enabled = false;
            viewControl.GetTransparencyPanel().Configure(null, null);
            viewControl.GetTransparencyPanel().Enabled = false;
            viewControl.setDisplayedRegistration(null);
            viewControl.GetCachePackage().ClearSchedulers();
        }