Exemplo n.º 1
0
        private static void UserChoice1()
        {
            Console.Write("Enter file name to search:  ");
            InputStringToserch StringToserch = new InputStringToserch();

            StringToserch.StringToserch = Console.ReadLine();
            GetFiles getFile = new GetFiles(StringToserch);

            Console.WriteLine("\nStart Searching ...");
            getFile.SearchFileAndFolder();
        }
Exemplo n.º 2
0
        private static void UserChoice2()
        {
            Console.Write("Enter file name to search:  ");
            InputStringToserch StringToserch = new InputStringToserch();

            StringToserch.StringToserch = Console.ReadLine();
            Console.Write("Enter folder path to search:  ");
            StringToserch.FolderToserch = Validate_Correct_Folder_Input.Correct_Folder_Input(Console.ReadLine(), StringToserch.Driver);
            GetFiles getFile = new GetFiles(StringToserch);

            Console.WriteLine("\nStart Searching ...");

            getFile.SearchFileAndFolder(StringToserch.FolderToserch);
        }