private void ShowDialogWork() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); using (TrustManagerPromptUI tui = new TrustManagerPromptUI(this.m_appName, this.m_defaultBrowserExePath, this.m_supportUrl, this.m_deploymentUrl, this.m_publisherName, this.m_certificate, this.m_options)) { this.m_ret = tui.ShowDialog(); } } catch { } }
private void ShowDialogWork() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); using (TrustManagerPromptUI tui = new TrustManagerPromptUI(this.m_appName, this.m_defaultBrowserExePath, this.m_supportUrl, this.m_deploymentUrl, this.m_publisherName, this.m_certificate, this.m_options)) { this.m_ret = tui.ShowDialog(); } } catch { } }
private void ShowDialogWork() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); using (TrustManagerPromptUI trustManagerDialog = new TrustManagerPromptUI(this.m_appName, this.m_defaultBrowserExePath, this.m_supportUrl, this.m_deploymentUrl, this.m_publisherName, this.m_certificate, this.m_options)) { m_ret = trustManagerDialog.ShowDialog(); } } catch { } finally { Application.ExitThread(); //explicitly call Dispose [DevDiv2 bug 184375, OleUnitinialize not being called] } }