Пример #1
0
        static void PrintAllSizes()
        {
            var sb      = new System.Text.StringBuilder();
            int counter = 1;

            sb.Append(String.Format("{0,-15} {1,-15} {2,-15}\n\n", "Size Number", "Size Name", "Size Price"));
            foreach (var size in _sql.ReadSize().ToList())
            {
                sb.Append(String.Format("{0,-15} {1,-15} {2,-15}\n", counter, size.name, size.price));
                counter++;
            }
            Console.WriteLine(sb);
        }