Comments
3 comments
-
What about the base class's GetCommandForCaller method?
Without seeing everything, my guess is they have done one of the following:
1. stored either serialized code in those resources that they are just extracting and handing back as a command to execute
2. stored binaries in the resources to be extracted and executed as needed
There are other options as well, but my guess would be #1 above. If you look into the GetCommandForCaller it should help. -
#haleyJason
Thanks for your quick response. This the Code for GetCommandForCaller :protected Command GetCommandForCaller(string propertyName, string id, string category) { CommandManager commandManager = CommandManager; Command command = null; if (commandManager != null) { command = commandManager.Commands[id]; } if (command == null) { command = CreateCommand(propertyName, id, category); if (commandManager != null) { commandManager.Commands.Add(command); return command; } CommandsToBeAdded.Add(command); } return command; }
so I can't create ExploreCommand.resx manualy? what do you think? -
Can you create it manually? That depends on what you mean by 'create'. Are you looking to use their code (via reference) or are you trying to build something like it (via inspiration)?
If you're referencing there code, then that shouldn't be a problem.
If you're using the code for inspiration for your own implementation, then you'll really need to understand what they are doing before you will be able to just create your own ... but I'm guessing you knew that.
Add comment
Please sign in to leave a comment.
Resource save image and string to execute command.
Code :
AND THIS THE SUPERCLASS :
sOMEBOY CAN help me please....