public DlgResult Show( String message, String caption, DlgButtonSet buttonSet, DlgIcon icon) { return(EnumMapper.GetDlgResult(MessageBox.Show( message, caption, EnumMapper.GetMessageBoxButtons(buttonSet), EnumMapper.GetMessageBoxIcons(icon)))); }
public DlgResult ShowDialog(object owner) { var win32owner = owner as IWin32Window; if (win32owner != null) { return(EnumMapper.GetDlgResult(base.ShowDialog(win32owner))); } else { return(EnumMapper.GetDlgResult(base.ShowDialog())); } }
public DlgResult ShowDialog(object owner) { var win32owner = owner as System.Windows.Forms.IWin32Window; if (owner != null) { return(EnumMapper.GetDlgResult(_hostDialog.ShowDialog(win32owner))); } else { return(EnumMapper.GetDlgResult(_hostDialog.ShowDialog())); } }