Use the following code:
this.AttachEventHandler("custom_event", "custom_method_1");
this.AttachEventHandler("custom_event", "custom_method_2");
this.AttachEventHandler("custom_event", "custom_method_3");
The physical renderer or the plug-in wrapper triggers these handlers when the following code is executed:
this.GetPM().OnControlEvent( "custom_event", param1, param2)
The presentation model determines that it must handle three events, and it handles them in the reverse order that you specify them. In this example, it uses the following sequence when it handles the event:
1. custom_method_3
2. custom_method_2
3. custom_method_1
The presentation model sends the same values for the parameters that OnControlEvent specifies for each event handler.
For more information, see AttachEventHandler Method.