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"); } }
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"); } }