// public stop method to retrieve the dialog result public static PresentationResult Stop(WindowDispatcherAsyncResult asyncResult) { if (asyncResult == null) { throw new ArgumentNullException(nameof(asyncResult)); } asyncResult.AsyncWaitHandle.WaitOne(); return(asyncResult.Result); }
// public stop method to retrieve the dialog result public static PresentationResult Stop(WindowDispatcherAsyncResult asyncResult) { if (asyncResult == null) throw new ArgumentNullException("asyncResult"); asyncResult.AsyncWaitHandle.WaitOne(); return asyncResult.Result; }