Interaction logic for PromptUserData.xaml
        /// <summary>
        /// The prompt.
        /// </summary>
        /// <param name="question">The question.</param>
        /// <param name="title">The title.</param>
        /// <param name="tags">The tags.</param>
        /// <param name="newtag">The new tag.</param>
        /// <returns>
        /// The <see cref="string" />.
        /// </returns>
        public static string Prompt(string question, string title, List<string> tags, out string newTag, string startTags = "")
        {
            var inst = new PromptForTagIssue(question, title, tags, startTags);
            inst.ShowDialog();

            if (inst.DialogResult == true)
            {
                newTag = inst.NewTag();
                return inst.SelectedTagFromList();
            }

            newTag = string.Empty;
            return null;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The prompt.
        /// </summary>
        /// <param name="question">The question.</param>
        /// <param name="title">The title.</param>
        /// <param name="tags">The tags.</param>
        /// <param name="newtag">The new tag.</param>
        /// <returns>
        /// The <see cref="string" />.
        /// </returns>
        public static string Prompt(string question, string title, List <string> tags, out string newTag, string startTags = "")
        {
            var inst = new PromptForTagIssue(question, title, tags, startTags);

            inst.ShowDialog();

            if (inst.DialogResult == true)
            {
                newTag = inst.NewTag();
                return(inst.SelectedTagFromList());
            }

            newTag = string.Empty;
            return(null);
        }