public void Listen() { if (!Successfully.IsCompleted) { Successfully.RunSynchronously(); } }
public void Listen(object sender, EventArgs eventArgs) { if (_predicate.Invoke()) { Successfully.RunSynchronously(); } }
public void Listen(object sender, MessageBoxHideEventArgs eventArgs) { _EventArgs = eventArgs; if (!Successfully.IsCompleted) { Successfully.RunSynchronously(); } }
public void Listen(object sender, EventArgs eventArgs) { this.sender = sender; this.eventArgs = eventArgs; if (!Successfully.IsCompleted) { //Console.WriteLine("running synchornisously"); Successfully.RunSynchronously(); } }