This class represents a user prompt dialog, which replaces the VS built-in dialog with a styled one.
Inheritance: GoogleCloudExtension.Theming.CommonDialogWindowBase
Example #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);
        }
        public UserPromptWindowViewModel(UserPromptWindow owner, UserPromptWindow.Options options)
        {
            _owner = owner;
            _options = options;

            ActionCommand = new ProtectedCommand(OnActionCommand);
        }
        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;
 }