public StringSelectionDialogResult SelectString(string messageBoxText, string caption, string defaultInput) { if (IsFullscreen) { return(Invoke(() => Dialogs.SelectStringFullscreen(PlayniteWindows.CurrentWindow, messageBoxText, caption, defaultInput))); } else { return(Invoke(() => Dialogs.SelectString(PlayniteWindows.CurrentWindow, messageBoxText, caption, defaultInput))); } }
public MessageBoxResult SelectString(string messageBoxText, string caption, out string input) { var result = MessageBoxResult.None; input = string.Empty; var inpt = input ?? string.Empty; context.Send((a) => { result = Dialogs.SelectString(PlayniteWindows.CurrentWindow, messageBoxText, caption, out inpt); }, null); input = inpt; return(result); }
public MessageBoxResult SelectString(string messageBoxText, string caption, out string input) { return(Dialogs.SelectString(PlayniteWindows.CurrentWindow, messageBoxText, caption, out input)); }