コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }