/// <summary> /// Makes a call GUI threadsafe without waiting for the returned value. /// </summary> public static void SafeThreadAsyncCall(object target, string methodName, params object[] arguments) { caller.BeginCall(target, methodName, arguments); }
/// <summary> /// Makes a call GUI threadsafe without waiting for the returned value. /// </summary> public static void SafeThreadAsyncCall(Action method) { caller.BeginCall(method, new object[0]); }
/// <summary> /// Makes a call GUI threadsafe without waiting for the returned value. /// </summary> public static void SafeThreadAsyncCall <A>(Action <A> method, A arg1) { STAThreadCaller caller = new STAThreadCaller(_hostServices.Wb as Form); caller.BeginCall(method, new object[] { arg1 }); }
/// <summary> /// Makes a call GUI threadsafe without waiting for the returned value. /// </summary> public static void SafeThreadAsyncCall <A, B, C>(ActionF <A, B, C> method, A arg1, B arg2, C arg3) { STAThreadCaller caller = new STAThreadCaller(_hostServices.Wb as Form); caller.BeginCall(method, new object[] { arg1, arg2, arg3 }); }
/// <summary> /// Makes a call GUI threadsafe without waiting for the returned value. /// </summary> public static void SafeThreadAsyncCall(ActionF method) { STAThreadCaller caller = new STAThreadCaller(_hostServices.Wb as Form); caller.BeginCall(method, new object[0]); }