/// <summary> /// The prompt. /// </summary> /// <param name="question">The question.</param> /// <param name="title">The title.</param> /// <param name="users">The users.</param> /// <param name="comment">The comment.</param> /// <returns> /// The <see cref="string" />. /// </returns> public static User Prompt(string question, string title, List<User> users, out string comment) { var inst = new PromptForAssignUser(question, title, users); inst.ShowDialog(); if (inst.DialogResult == true) { comment = inst.Comment(); return inst.SelectedUser(); } comment = string.Empty; return null; }
/// <summary> /// The prompt. /// </summary> /// <param name="question">The question.</param> /// <param name="title">The title.</param> /// <param name="users">The users.</param> /// <param name="comment">The comment.</param> /// <returns> /// The <see cref="string" />. /// </returns> public static User Prompt(string question, string title, List <User> users, out string comment) { var inst = new PromptForAssignUser(question, title, users); inst.ShowDialog(); if (inst.DialogResult == true) { comment = inst.Comment(); return(inst.SelectedUser()); } comment = string.Empty; return(null); }