Esempio n. 1
0
 private static void RemoveCommand(Command command)
 {
     if (CommandMgr.Exists(command))
     {
         //remove Command
         CommandMgr.RemoveCommand(command);
         Console.WriteLine("Removed command");
     }
     else
     {
         Console.WriteLine("The command doesn't exist");
     }
 }
Esempio n. 2
0
 static void AddCommand(Command command)
 {
     if (!CommandMgr.Exists(command))
     {
         //Add Command joining the end of the array
         CommandMgr.AddCommand(command);
         Console.WriteLine("Added command");
     }
     else
     {
         Console.WriteLine("The command already exists");
     }
 }