internal static void HandleException(object sender, Exception error) { lock (m_SyncRoot) { if (TangraContext.Current.HasRestartRequest()) return; } if (error != null) { var frm = new frmUnhandledException(error); frm.StartPosition = FormStartPosition.CenterParent; frm.ShowDialog(sender as IWin32Window); } }
internal static void HandleException(object sender, Exception error) { lock (m_SyncRoot) { if (TangraContext.Current.HasRestartRequest()) { return; } } if (error != null) { var frm = new frmUnhandledException(error); frm.StartPosition = FormStartPosition.CenterParent; frm.ShowDialog(sender as IWin32Window); } }