Example #1
0
 static void Main()
 {
     Drower.ShowFiles(Catalogue.catalog);
     Drower.ShowFolders(Catalogue.catalog);
     while (true)
     {
         string text = Console.ReadLine();
         Commands.EnterCommand(text);
         Commands.RunCommand();
     }
 }
Example #2
0
 static public void RunCommand()
 {
     if (Command.Contains("cd"))
     {
         Catalogue.catalog = RunCd(Command);
         Drower.ShowFiles(Catalogue.catalog);
         Drower.ShowFolders(Catalogue.catalog);
     }
     else if (Command.Contains("new"))
     {
         string file = Command.Split(" ")[1];
         CreateFile(Catalogue.catalog, file);
     }
     else
     {
         string file = Command.Split(" ")[1];
         DeleteFile(Catalogue.catalog, file);
     }
 }