/// <summary> /// Creates a new instance of the ChoicePromptDetails class /// based on a ChoiceDescription from the PowerShell layer. /// </summary> /// <param name="choiceDescription"> /// A ChoiceDescription on which this instance will be based. /// </param> /// <returns>A new ChoicePromptDetails instance.</returns> public static ChoiceDetails Create(ChoiceDescription choiceDescription) { return new ChoiceDetails( choiceDescription.Label, choiceDescription.HelpMessage); }
public virtual void ChoicePrompt(ChoiceDescription choice) { }
public Choice(ChoiceDescription desc) { Text = desc.Label.Replace("&", string.Empty); Hotkey = desc.Label.Split('&')[1].First().ToString().ToUpper(); HelpMessage = desc.HelpMessage; }