private void ExitCommand() { try { m_ooddcKeyObjects.Clear(); m_iGtApplication.SetStatusBarText(GTStatusPanelConstants.gtaspcMessage, ""); UnsubscribeEvents(); if (m_oGTCustomCommandHelper != null) { m_oGTCustomCommandHelper.Complete(); m_oGTCustomCommandHelper = null; } m_iGtApplication.EndWaitCursor(); m_iGtApplication.RefreshWindows(); } catch (Exception) { throw; } }
private void ExitCommand() { try { if (m_oGTTransactionManager.TransactionInProgress) { m_oGTTransactionManager.Commit(); m_oGTTransactionManager.RefreshDatabaseChanges(); } m_ooddcKeyObjects.Clear(); m_oGTApp.Application.SetStatusBarText(GTStatusPanelConstants.gtaspcMessage, ""); UnsubscribeEvents(); if (m_oGTCustomCommandHelper != null) { m_oGTCustomCommandHelper.Complete(); m_oGTCustomCommandHelper = null; } m_oGTApp.Application.EndWaitCursor(); m_oGTApp.Application.RefreshWindows(); } catch (Exception) { throw; } finally { m_oGTApp = null; m_oGTCustomCommandHelper = null; m_ooddcKeyObjects = null; m_oGTTransactionManager = null; m_ofeature = null; m_oOwnedFeatures = null; m_ocommonComponent = null; m_oCUComponent = null; } }