/// <summary>
        /// Prompts the user for a name.
        /// </summary>
        /// <returns>The name chosen by the user.</returns>
        public static string PromptUser(Options options = null)
        {
            var dialog = new NamePromptWindow(options);

            dialog.ShowModal();
            return(dialog.ViewModel.Name);
        }
        public NamePromptViewModel(NamePromptWindow owner, NamePromptWindow.Options options)
        {
            _owner = owner;

            Name    = options?.InitialName;
            Message = options?.Message ?? Resources.EnterNameDialogNameMessage;

            OkCommand     = new ProtectedCommand(OnOkCommand);
            CancelCommand = new ProtectedCommand(OnCancelCommand);
        }