mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
24 lines
623 B
C#
24 lines
623 B
C#
using System.Windows.Forms;
|
|
using BrightIdeasSoftware;
|
|
|
|
|
|
namespace mRemoteNG.Tree
|
|
{
|
|
public static class ObjectListViewExtensions
|
|
{
|
|
public static void Invoke(this Control control, MethodInvoker action)
|
|
{
|
|
control.Invoke(action);
|
|
}
|
|
|
|
public static void InvokeExpand(this TreeListView control, object model)
|
|
{
|
|
control.Invoke(() => control.Expand(model));
|
|
}
|
|
|
|
public static void InvokeRebuildAll(this TreeListView control, bool preserveState)
|
|
{
|
|
control.Invoke(() => control.RebuildAll(preserveState));
|
|
}
|
|
}
|
|
} |