public DialogResult ShowDialog(Window parent) { if (parent?.HasFocus == false) { parent.Focus(); } swf.DialogResult result; Control.PrinterSettings = _printSettings.ToSD(); if (parent != null) { result = Control.ShowDialog(((IWindowHandler)parent.Handler).Win32Window); } else { result = Control.ShowDialog(); } if (result == swf.DialogResult.OK && Document != null) { Document.PrintSettings = _printSettings; Document.Print(); } return(result.ToEto()); }
public DialogResult ShowDialog(Window parent) { swf.DialogResult result; Control.PrinterSettings = printSettings.ToSD(); if (parent != null) { result = Control.ShowDialog(((IWindowHandler)parent.Handler).Win32Window); } else { result = Control.ShowDialog(); } return(result.ToEto()); }