Пример #1
0
        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();
            }
        }
Пример #3
0
        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;
            }
        }