/// <summary> /// Show the prompt to the user with the given options. /// </summary> /// <param name="options"></param> /// <returns>Returns true if the user pressed the action button, false otherwise.</returns> public static bool PromptUser(Options options) { var dialog = new UserPromptWindow(options); dialog.ShowModal(); return(dialog.ViewModel.Result); }
public UserPromptWindowViewModel(UserPromptWindow owner, UserPromptWindow.Options options) { _owner = owner; _options = options; ActionCommand = new ProtectedCommand(OnActionCommand); }
private static bool PromptUserImplementation(Options options) { var dialog = new UserPromptWindow(options); dialog.ShowModal(); return(dialog.ViewModel.Result); }
/// <summary> /// Show the prompt to the user with the given options. /// </summary> /// <param name="options"></param> /// <returns>Returns true if the user pressed the action button, false otherwise.</returns> public static bool PromptUser(Options options) { var dialog = new UserPromptWindow(options); dialog.ShowModal(); return dialog.ViewModel.Result; }