public bool?ShowDialog(Microsoft.Win32.CommonDialog dialog) { #if DEBUG bool?dialogResult; if (Stub(dialog, out dialogResult)) { return(dialogResult); } #endif return(dialog.ShowDialog(InferOwnerOf(null))); }
internal static bool?ShowDialog(this Microsoft.Win32.CommonDialog form, IntPtr hOwnerWnd) { var source = Interop.HwndSource.FromHwnd(hOwnerWnd); return(form.ShowDialog(source.RootVisual as Window)); }