summaryrefslogtreecommitdiff
path: root/product/desktop.ui/presenters/UIThread.cs
diff options
context:
space:
mode:
authormo <email@solidware.ca>2011-04-04 21:51:02 -0600
committermo <email@solidware.ca>2011-04-04 21:51:02 -0600
commit4a4e2502ba571b5a4204eddb8f5a1e1524b2e4f5 (patch)
tree483f3c36d24083be02e3979d6b081cdbd10db51d /product/desktop.ui/presenters/UIThread.cs
parent512d9d7b2fc5f6aae18dbfe4095227cf06fe0b77 (diff)
add up,down icons. change timer interval to 20 seconds because larger values don't seem to work properly.main
Diffstat (limited to 'product/desktop.ui/presenters/UIThread.cs')
-rw-r--r--product/desktop.ui/presenters/UIThread.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/product/desktop.ui/presenters/UIThread.cs b/product/desktop.ui/presenters/UIThread.cs
new file mode 100644
index 0000000..0216df4
--- /dev/null
+++ b/product/desktop.ui/presenters/UIThread.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Windows;
+
+namespace solidware.financials.windows.ui.presenters
+{
+ static public class UIThread
+ {
+ static public void Run(Action action)
+ {
+ if (Application.Current != null)
+ Application.Current.Dispatcher.BeginInvoke(action);
+ else
+ action();
+ }
+ }
+} \ No newline at end of file