public static void CallScreenRunnable(Runnable runnable) { LProcess process = LSystem.screenProcess; if (process != null) { Screen screen = process.GetScreen(); if (screen != null) { lock (screen) { screen.CallEvent(runnable); } } } }