private static void Main() { // addToCommandList += AddToCommandList; AddToCommandList(new BaseCommands(SetCommandsCreatorUsage.ExecuteCommand)); AddToCommandList(new CustomTestCommands(SetCommandsCreatorUsage.ExecuteCommand)); while (!closeProgram) { Commands.CommandControler c = new Commands.CommandControler(cc); } }
public CommandControler(List <CommandsCreator> commandsCreator) { commandsCreators = commandsCreator; istance = this; ReadComand(commandsCreators); }