예제 #1
0
 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)));
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
 public MessageBoxResult SelectString(string messageBoxText, string caption, out string input)
 {
     return(Dialogs.SelectString(PlayniteWindows.CurrentWindow, messageBoxText, caption, out input));
 }