Ejemplo n.º 1
0
        public static int ChooseFromList(string promptMessage = null, params string[] listItems)
        {
            if (promptMessage == null)
            {
                promptMessage = $"> Choose between {1}-{listItems.Count()}";
            }

            PrintStuff.PrintList(listItems);

            var number = ChooseInt(promptMessage, 1, listItems.Count());

            return(number);
        }
Ejemplo n.º 2
0
 public static ObjectPrinter <T> PrintCustomObjects <T>(List <T> objectsToBePrinted)
 {
     return(PrintStuff.PrintObjects(objectsToBePrinted).Configure(ObjectPrinterOptions.UseOnlyCustomFields));
 }
Ejemplo n.º 3
0
 public static ObjectPrinter <T> PrintObjects <T>(List <T> objectsToBePrinted) => PrintStuff.PrintObjects(objectsToBePrinted);
Ejemplo n.º 4
0
 public static ObjectPrinter <T> PrintObject <T>(T objectToBePrinted) => PrintStuff.PrintObject(objectToBePrinted);
Ejemplo n.º 5
0
 public static void PrintLine(string printLine)
 => PrintStuff.PrintLine(printLine);
Ejemplo n.º 6
0
 /// <summary>
 /// Prints a list and waits for key to continue
 /// </summary>
 public static void PrintList(params string[] list)
 => PrintStuff.PrintList(list);