public static void DoEvents() { DoEvents(DispatcherPriority.Background); } public static void DoEvents(DispatcherPriority nPrio)