private void UnLoadXamlApplicationResources() { Int64 startTicks = Log.APPLICATION_END("Enter", Common.LOG_CATEGORY); try { if (null != _XamlApp) { _XamlApp.Shutdown(); _XamlApp = null; } if (null != _prismApplication) { _prismApplication.Shutdown(); _prismApplication = null; } } catch (Exception ex) { Common.DeveloperMode = true; Common.WriteToDebugWindow(ex.ToString()); Common.DeveloperMode = false; } Log.APPLICATION_END("Exit", Common.LOG_CATEGORY, startTicks); }
private void ThisAddIn_Shutdown(object sender, System.EventArgs e) { long startTicks = Log.APPLICATION_END("Enter", Common.PROJECT_NAME); try { Common.DeveloperMode = true; Common.WriteToDebugWindow("ThisAddIn_Shutdown()"); Common.DeveloperMode = false; if (Common.HasAppEvents) { Common.AppEvents = null; } UnLoadXamlApplication(); } catch (Exception ex) { Log.Error(ex, Common.PROJECT_NAME); Common.DeveloperMode = true; Common.WriteToDebugWindow(ex.ToString()); Common.DeveloperMode = false; throw (ex); } Log.APPLICATION_END("Exit", Common.PROJECT_NAME, startTicks); }
private void Application_Deactivated(object sender, EventArgs e) { long startTicks = Log.APPLICATION_END("Enter", Common.LOG_CATEGORY); Log.APPLICATION_END("Exit", Common.LOG_CATEGORY, startTicks); }
private void Application_SessionEnding(object sender, SessionEndingCancelEventArgs e) { long startTicks = Log.APPLICATION_END("Enter", Common.LOG_CATEGORY); Log.APPLICATION_END("Exit", Common.LOG_CATEGORY, startTicks); }
private void Application_Deactivated(object sender, EventArgs e) { #if TRACE long startTicks = Log.APPLICATION_END("Enter", LOG_APPNAME, BASE_ERRORNUMBER + 0); #endif #if TRACE Log.APPLICATION_END("Exit", LOG_APPNAME, BASE_ERRORNUMBER + 0, startTicks); #endif }
private void UnLoadXamlApplication() { long startTicks = Log.APPLICATION_END("Enter", Common.PROJECT_NAME); try { if (null != Common.XamlApplication) { Common.XamlApplication.Shutdown(); Common.XamlApplication = null; } } catch (Exception ex) { Common.DeveloperMode = true; Common.WriteToDebugWindow(ex.ToString()); Common.DeveloperMode = false; } Log.APPLICATION_END("Exit", Common.PROJECT_NAME, startTicks); }
private void ThisAddIn_Shutdown(object sender, System.EventArgs e) { Int64 startTicks = Log.APPLICATION_END("Enter", Common.LOG_CATEGORY); try { // Need to do a bit more work to use CustomTask Panes in Visio. (Handled by Designer normally) //CustomTaskPanes.Dispose(); if (Common.HasAppEvents) { Common.AppEvents = null; } UnLoadXamlApplicationResources(); } catch (Exception ex) { Log.Error(ex, Common.LOG_CATEGORY); throw (ex); } Log.APPLICATION_END("Exit", Common.LOG_CATEGORY, startTicks); }