Пример #1
0
        public Menu(List <string> options, TextData optionTextFormatting, bool optionType, TextData title, TextData menuText, TextData optionFormatting)
        {
            if (options.Count == 0)
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Error!!!! No options were provided!!!");
                Console.ResetColor();
                Environment.FailFast("");
            }

            m_options          = options;
            m_optionFormatting = optionFormatting;

            if (optionFormatting.text == "")
            {
                optionFormatting.text = "@)";
            }
            m_optionTextFormatting = optionTextFormatting;
            m_title       = title;
            m_menuText    = menuText;
            m_optionsType = optionType;
        }