System.Windows.Forms.Control.InvokeIfRequired(System.Action)

Here are the examples of the csharp api class System.Windows.Forms.Control.InvokeIfRequired(System.Action) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: D2ModdinClient
Source File: notificationForm.cs
View license
public void NotifyTryAgain(string title, string message, Action TryAgain, Action Cancel, Action Download)
        {
            this.InvokeIfRequired(() =>
            {
                mTryAgain = TryAgain;
                mCancel = Cancel;
                mDownload = Download;

                Notify(NotificationType.TryAgain, title, message);
            });
        }

2. Example

Project: D2ModdinClient
Source File: notificationForm.cs
View license
private void hideTimer_Tick(object sender, EventArgs e)
        {
            this.InvokeIfRequired(() =>
            {
                Fade(0);
            });
            hideTimer.Stop();
        }