Wrong RightMenu sender type
Status: Beta
Brought to you by:
mhowlett
I have a custom right menu which inherits as such
NPRightMenu :
NPlot.Windows.PlotSurface2D.PlotContextMenu
which has a single item of the type
NPlot.Windows.PlotSurface2D.PlotContextMenu.PlotMenuIte
m
However the type of sender in the actual event is of
type System.Windows.Forms.MenuItem
I don't have an idea about how to overcome this issue,
since I started out with a NPRightMenu ( containing
information about the plot it is associated to ) and
ends up with a generic menu. Bugger :-)
I suspect there is some typecasting in the code that
gives me a generic System.Windows.Forms.MenuItem
Any ideas ?
Regards
Jes Ramsing