1
0
mirror of https://github.com/chylex/Code-Statistics.git synced 2025-06-02 06:34:04 +02:00
Code-Statistics/CodeStatisticsCore/Forms/FormUtils.cs

12 lines
289 B
C#

using System;
using System.Windows.Forms;
namespace CodeStatisticsCore.Forms{
public static class FormUtils{
public static void InvokeOnUIThread(this Form form, Action func){
if (form.InvokeRequired)form.Invoke(func);
else func();
}
}
}