Esempio n. 1
0
 //
 // PUBLIC METHODS
 //
 public static FormException GetInstance()
 {
     if (formException == null)
     {
         formException = new FormException();
         formException.CreateHandle();
     }
     return(formException);
 }
Esempio n. 2
0
        public static void HandleException(Exception exception)
        {
            // Exit if Exception is NULL
            if (exception == null)
            {
                return;
            }

            // Get New of Existing Instance of Exception Window
            FormException formException = FormException.GetInstance();

            // Get Calling Assembly
            Assembly assembly = Assembly.GetCallingAssembly();

            // Add Exception to Webbrowser
            formException.AddException(null, new ExceptionHandlerEventArgs(exception, assembly));
        }
 //
 // PUBLIC METHODS
 //
 public static FormException GetInstance() {
     if (formException == null) {
         formException = new FormException();
         formException.CreateHandle();
     }
     return formException;
 }