Exemple #1
0
 /// <summary>
 /// Constructs new default-coloured MenuLines for each string in the passed list
 /// and adds them to this Menu's list of MenuLines
 /// </summary>
 /// <param name="lines">A list of strings to be displayed</param>
 public void AddLines(List <string> lines)
 {
     foreach (string line in lines)
     {
         MenuLine newLine = new MenuLine(line);
         MenuLines.Add(newLine);
     }
 }
Exemple #2
0
        /// <summary>
        /// Constructs a new MenuItem and adds it to this Menu's list of MenuLines
        /// </summary>
        /// <param name="line">The string to be displayed</param>
        /// <param name="colour">Optional MenuColour for the line</param>
        public void AddLine(string line, MenuColours colour = MenuColours.DEFAULT)
        {
            MenuLine newLine = new MenuLine(line, colour);

            MenuLines.Add(newLine);
        }