I like it move it move it

This commit is contained in:
Oleksandr Bezdieniezhnykh
2024-05-18 17:51:38 +03:00
parent de77c9236f
commit dd0ece36f2
33 changed files with 0 additions and 0 deletions
@@ -0,0 +1,14 @@
using System.ComponentModel;
namespace Azaion.Annotator;
public static class SynchronizeInvokeExtensions
{
public static void InvokeEx<T>(this T t, Action<T> action) where T : ISynchronizeInvoke
{
if (t.InvokeRequired)
t.Invoke(action, [t]);
else
action(t);
}
}