I am looking for adding menu on right click mouse buttion and execute the code ? How I can do that
You can add command to the existing menu in the operation tree, via the the UI. (Customize the ribbon..., and next to the menu section there is the "customize...:" button.
Is there any way to customize the context menu? I have seen XML for context menu in NewAssembler.xml, but it so confusing. It would be nice to have a possibility to customize context menu.
yes, of course there is.
click on Customize...
Note that 2 dialogs are opened. One with the customize title, allowing you to choose the viewer, and the menu to modify,
and the second is the selected sub menu.
next, click on the command tab, find the command that you wish to add, and drag it to the sub menu dialog.