private static void DisplayException(object ex) { ExceptionDisplayForm form = new ExceptionDisplayForm(ex as Exception); form.ShowDialog(); }