private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { try { Exception ex = (Exception)e.ExceptionObject; LuaScripting.debug(ex.Message + "\n\nStack Trace:\n" + ex.StackTrace); } catch (Exception exc) { LuaScripting.debug(exc.Message + "\n\nStack Trace:\n" + exc.StackTrace); Application.Exit(); } }
private void button7_Click(object sender, EventArgs e) { LuaScripting.ReloadScripts(); }
private static void Application_ApplicationExit(object sender, EventArgs e) { LuaScripting.CloseScripts(); }