mirror of
https://github.com/chylex/Code-Statistics.git
synced 2025-06-02 06:34:04 +02:00
12 lines
289 B
C#
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();
|
|
}
|
|
}
|
|
}
|