Example #1
0
 public static bool InvokeHelper(this ISynchronizeInvoke value, Delegate method, object[] args)
 {
     return(value.InvokeCrossThread(method, args));
 }
Example #2
0
 public static bool InvokeHelper <T>(this ISynchronizeInvoke value, EventHandler <T> method, object sender, EventArgs e)
     where T : EventArgs
 {
     return(value.InvokeCrossThread(method, new object[] { sender, e }));
 }
Example #3
0
 public static bool InvokeHelper(this ISynchronizeInvoke value, EventHandler method, object sender, EventArgs e)
 {
     return(value.InvokeCrossThread((Delegate)method, new object[] { sender, e }));
 }
Example #4
0
 public static bool InvokeHelper(this ISynchronizeInvoke value, EventHandler method)
 {
     return(value.InvokeCrossThread((Delegate)method, new object[] { null, null }));
 }