Ejemplo n.º 1
0
        /// <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);
        }
        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;
 }