Using events in CS
From Ribbon Commander Documentation
Prerequisites
We recommend you go through Creating our first button in C# before going into this example.
Background
You can subscribe to events of Dynamic RibbonX controls by using .NET events or .NET delegates. Here, we show how it can be done by using .NET events.