Class and sample to bind event (C#) and method from GUI.