private static string[,] BuildHotkeysAndPlainLabels(Collection <ChoiceDescription> choices)
 {
     string[,] array = new string[2, choices.Count];
     for (int i = 0; i < choices.Count; i++)
     {
         string[] hotkeyAndLabel = ConsoleHostUserInterface.GetHotkeyAndLabel(choices[i].Label);
         array[0, i] = hotkeyAndLabel[0];
         array[1, i] = hotkeyAndLabel[1];
     }
     return(array);
 }
        public override Dictionary <string, PSObject> Prompt(string caption, string message, Collection <FieldDescription> descriptions)
        {
            this.Write(ConsoleColor.Gray, ConsoleColor.Black, caption + "\n" + message + " ");
            Dictionary <string, PSObject> dictionary = new Dictionary <string, PSObject>();

            foreach (FieldDescription current in descriptions)
            {
                string[] hotkeyAndLabel = ConsoleHostUserInterface.GetHotkeyAndLabel(current.Label);
                this.WriteLine(hotkeyAndLabel[1]);
                string text = Console.ReadLine();
                if (text == null)
                {
                    return(null);
                }
                dictionary[current.Name] = PSObject.AsPSObject(text);
            }
            return(dictionary);
        }