예제 #1
0
 //Here out program begins with a simple loop of options displayed by the Navigator function
 public void Start()
 {
     do
     {
         menuChoice = Navigator();
         if (menuChoice == 'e')
         {
             exit = true;
         }
         else if (menuChoice == 'h')
         {
             List <string> history = logicClass.GetHistory();
             DisplayHistory(history);
         }
         else if (menuChoice == 'c')
         {
             NewSearch("C:\\");
         }
         else if (menuChoice == 'd')
         {
             string path = "";
             do
             {
                 if (path != "")
                 {
                     Console.WriteLine("Invalid directory! Folder does not exist!");
                 }
                 path = GetDirectory();
             } while (!logicClass.CheckPathExistence(path));
             NewSearch(path);
         }
     } while (!exit);
     GreetFarewell();
 }