diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 10:58:08 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 10:58:08 -0500 |
| commit | 17c1fd576057bdd2d6aea517d733fe8af6e6b2ba (patch) | |
| tree | 660f47e816a8599aabdb7ee47f3cde64c72c3f4d /MediaBrowser.UI/Extensions/Extensions.cs | |
| parent | 33ed929b526acbda696f00f5966917ebd6a9ded2 (diff) | |
moved ui to it's own repo
Diffstat (limited to 'MediaBrowser.UI/Extensions/Extensions.cs')
| -rw-r--r-- | MediaBrowser.UI/Extensions/Extensions.cs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/MediaBrowser.UI/Extensions/Extensions.cs b/MediaBrowser.UI/Extensions/Extensions.cs deleted file mode 100644 index 1d0d7d1c2..000000000 --- a/MediaBrowser.UI/Extensions/Extensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Windows.Threading; - -namespace MediaBrowser.UI.Extensions -{ - public static class Extensions - { - /// <summary> - /// Invokes an action after a specified delay - /// </summary> - /// <param name="dispatcher">The dispatcher.</param> - /// <param name="action">The action.</param> - /// <param name="delayMs">The delay ms.</param> - public static void InvokeWithDelay(this Dispatcher dispatcher, Action action, long delayMs) - { - var timer = new DispatcherTimer(DispatcherPriority.Normal, dispatcher); - timer.Interval = TimeSpan.FromMilliseconds(delayMs); - timer.Tick += (sender, args) => - { - timer.Stop(); - action(); - }; - timer.Start(); - } - } -} |
