1234567891011121314151617181920212223242526 |
- using System;
- using System.Windows.Forms;
- namespace Update.Util
- {
-
-
-
- public static class AppUtil
- {
-
-
-
-
- public static void Idle(Action action)
- {
- EventHandler handler = null;
- handler = (sender, e) =>
- {
- Application.Idle -= handler;
- action();
- };
- Application.Idle += handler;
- }
- }
- }
|