/// <summary> /// Ends the process. /// </summary> public void Terminate() { dataContext = null; gtTransactionManager = null; UnsubscribeEvents(); customCommandHelper = null; if (featurePlacementService != null) { featurePlacementService.Dispose(); featurePlacementService = null; } if (featureExplorerService != null) { featureExplorerService.Clear(); featureExplorerService.Dispose(); featureExplorerService = null; } m_gtApp.EndWaitCursor(); }
/// <summary> /// Method to Exit the command. /// </summary> private void ExitCommand() { try { m_oGTApp.SetStatusBarText(GTStatusPanelConstants.gtaspcMessage, ""); if (m_oEventsSubscribed) { UnsubscribeEvents(); } if (m_oGTCustomCommandHelper != null) { m_oGTCustomCommandHelper.Complete(); m_oGTCustomCommandHelper = null; } } catch { throw; } finally { if (m_oGTCustomCommandHelper != null) { m_oGTCustomCommandHelper = null; } if (m_oGTTransactionManager != null) { m_oGTTransactionManager = null; } if (m_oGTExplorerService != null) { m_oGTExplorerService.Dispose(); m_oGTExplorerService = null; } if (m_oGTPlacementService != null) { m_oGTPlacementService.Dispose(); m_oGTPlacementService = null; } } }
/// <summary> /// /// </summary> private void CleanUp() { SubscribEvents(false); if (_gtFeatureExplorerSrvc != null) { _gtFeatureExplorerSrvc.Clear(); _gtFeatureExplorerSrvc.Dispose(); _gtFeatureExplorerSrvc = null; } if (_gtPlacementSrvc != null) { _gtPlacementSrvc.Dispose(); _gtPlacementSrvc = null; } streetLights = null; if (stltNonLocatedCtx != null) { stltNonLocatedCtx.Dispose(); } stltNonLocatedCtx = null; streetLightAcct = null; _gtKeyObj = null; _gtKeyEditObj = null; }