Esempio n. 1
0
 public void Files()
 {
     var directoryManager = new DirectoryManager();
     foreach (var days in directoryManager.OrderDateList())
     {
         Console.WriteLine(days);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the Order date from the customer
 /// </summary>
 /// <returns>Validated date or null if invalid</returns>
 public string GetDateFromCustomer()
 {
     Console.Clear();
     var wrappers = new Wrappers();
     wrappers.DrawHeader("Order Dates");
     _displayFullList.Files();
     wrappers.DrawFooter();
     var directoryManager = new DirectoryManager();
     Console.WriteLine();
     Console.Write("Please pick a date from the list: ");
     string input = Console.ReadLine();
     if (!directoryManager.CheckDate(input))
     {
         return null;
     }
     return directoryManager.TranslateDate(input);
 }