public override void WillTerminate(UIApplication application) { iXappController.Dispose(); iXappController = null; iViewer.Dispose(); iViewer = null; }
private void Window_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { if (iViewer != null) { iViewer.Dispose(); iViewer = null; } if (IsVisible) { iViewer = new ViewerBrowser(WebBrowser, iServer.PresentationUri); WebBrowser.Focus(); } }
private void Application_Exit(object sender, ExitEventArgs e) { if (iHelperAutoUpdate != null) { iHelperAutoUpdate.Dispose(); iHelperAutoUpdate = null; } if (iXappController != null) { iXappController.Dispose(); iXappController = null; } if (iViewer != null) { iViewer.Dispose(); iViewer = null; } }