aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-07 15:02:20 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-07 15:02:20 +0300
commit4ca8cee91fb46977b75e8329c18d9b6a4654b12e (patch)
treec2a0473f30d9302f4b8eea21f90106d24ba23461 /Software/Visual_Studio/Tango.Core/ExtendedObject.cs
parentbed649c7492655c0137237c910b200e053bfa119 (diff)
downloadTango-4ca8cee91fb46977b75e8329c18d9b6a4654b12e.tar.gz
Tango-4ca8cee91fb46977b75e8329c18d9b6a4654b12e.zip
Working on PPC jobs loading performance...
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/ExtendedObject.cs')
-rw-r--r--Software/Visual_Studio/Tango.Core/ExtendedObject.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
index 30179c3bf..cafafef4f 100644
--- a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
+++ b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
@@ -8,6 +8,7 @@ using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
+using System.Windows.Threading;
using Tango.Core.Commands;
using Tango.Core.IO;
using Tango.Logging;
@@ -112,6 +113,15 @@ namespace Tango.Core
}
/// <summary>
+ /// Invokes the specified action on the UI Thread when context is idle.
+ /// </summary>
+ /// <param name="action">The action.</param>
+ protected virtual void InvokeUIOnIdle(Action action)
+ {
+ Application.Current.Dispatcher.BeginInvoke(action, DispatcherPriority.ContextIdle);
+ }
+
+ /// <summary>
/// Invokes the specified action on the UI Thread.
/// </summary>
/// <param name="action">The action.</param>