Bloom.ToPalaso.SafeInvoke.InvokeIfPossible C# (CSharp) Method

InvokeIfPossible() public static method

This version just makes it clear that the call is permissive, won't bother the user if something goes wrong, which is appropriate for many background-->foreground ui tasks, like refreshing.
public static InvokeIfPossible ( string nameForErrorReporting, Control control, bool forceSynchronous, System.Action action ) : void
nameForErrorReporting string
control System.Windows.Forms.Control
forceSynchronous bool
action System.Action
return void
        public static void InvokeIfPossible(string nameForErrorReporting, Control control, bool forceSynchronous, Action action)
        {
            Invoke(nameForErrorReporting, control, forceSynchronous, false, action);
        }