File size: 754 Bytes
e26fba6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
using System.Runtime.CompilerServices;
namespace MovieTube.Viewer
{
public static class ExtensionMethods
{
public static void InvokeEx<TControl>(this TControl control, Action action)
where TControl : Control
{
if (control.InvokeRequired)
control.BeginInvoke(action);
else
action();
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Method)]
public sealed class ExtensionAttribute : Attribute { }
}
|