示例#1
0
        public static void ForceCloudDebug()
        {
            //SECRET CRASH DONT TELL ANYONE
            //Trigger: Hold Manual Blast for 7 seconds
            //Purpose: Testing debug window
            var ex = new CustomException("SECRET CRASH DONT TELL ANYONE",
                                         "───────▄▀▀▀▀▀▀▀▀▀▀▄▄" + Environment.NewLine + "────▄▀▀─────────────▀▄" + Environment.NewLine + "──▄▀──────────────────▀▄" + Environment.NewLine +
                                         "──█─────────────────────▀▄" + Environment.NewLine + "─▐▌────────▄▄▄▄▄▄▄───────▐▌" + Environment.NewLine + "─█───────────▄▄▄▄──▀▀▀▀▀──█" + Environment.NewLine +
                                         "▐▌───────▀▀▀▀─────▀▀▀▀▀───▐▌" + Environment.NewLine + "█─────────▄▄▀▀▀▀▀────▀▀▀▀▄─█" + Environment.NewLine + "█────────────────▀───▐─────▐▌" +
                                         Environment.NewLine + "▐▌─────────▐▀▀██▄──────▄▄▄─▐▌" + Environment.NewLine + "─█───────────▀▀▀──────▀▀██──█" + Environment.NewLine + "─▐▌────▄─────────────▌──────█" + Environment.NewLine + "──▐▌──▐──────────────▀▄─────█" +
                                         Environment.NewLine + "───█───▌────────▐▀────▄▀───▐▌" + Environment.NewLine + "───▐▌──▀▄────────▀─▀─▀▀───▄▀" + Environment.NewLine + "───▐▌──▐▀▄────────────────█" + Environment.NewLine + "───▐▌───▌─▀▄────▀▀▀▀▀▀───█" + Environment.NewLine +
                                         "───█───▀────▀▄──────────▄▀" + Environment.NewLine + "──▐▌──────────▀▄──────▄▀" + Environment.NewLine +
                                         "─▄▀───▄▀────────▀▀▀▀█▀" + Environment.NewLine + "▀───▄▀──────────▀───▀▀▀▀▄▄▄▄▄"
                                         );

            Form error  = new RTCV.NetCore.CloudDebug(ex, true);
            var  result = error.ShowDialog();
        }
示例#2
0
        /// <summary>
        /// Global exceptions in User Interfarce antipicated error
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        internal static void ApplicationThreadException(object sender, ThreadExceptionEventArgs e)
        {
            Exception ex     = e.Exception;
            Form      error  = new RTCV.NetCore.CloudDebug(ex);
            var       result = error.ShowDialog();

            Form loaderObject = (sender as Form);

            if (result == DialogResult.Abort)
            {
                if (loaderObject != null)
                {
                    RTCV.NetCore.SyncObjectSingleton.SyncObjectExecute(loaderObject, (o, ea) =>
                    {
                        loaderObject.Close();
                    });
                }
            }
        }
示例#3
0
 /// <summary>
 /// Global exceptions in Non User Interfarce(other thread) antipicated error
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 internal static void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     Exception ex     = (Exception)e.ExceptionObject;
     Form      error  = new RTCV.NetCore.CloudDebug(ex);
     var       result = error.ShowDialog();
 }