I want to make a MenuItem that I can 'click' programmaticall y. I
started by coding this:
class ClickableMenuIt em : MenuItem {
public void DoClick( EventArgs e ) {
OnClick( e );
}
ClickableMenuIt em( MenuItem mi ) {
// What do I do here?!?
// this = mi; <--- does not work
}
}
As you can see, I have no idea of how to tell ClickableMenuIt em to take
all of its fields and events from MenuItem upon construction.
How would you do this?
started by coding this:
class ClickableMenuIt em : MenuItem {
public void DoClick( EventArgs e ) {
OnClick( e );
}
ClickableMenuIt em( MenuItem mi ) {
// What do I do here?!?
// this = mi; <--- does not work
}
}
As you can see, I have no idea of how to tell ClickableMenuIt em to take
all of its fields and events from MenuItem upon construction.
How would you do this?
Comment