Beispiel #1
0
        public void onClickEvent()
        {
            CustomControlEventArgs ce = new CustomControlEventArgs();

            if (CustomEvent != null)
            {
                CustomEvent(this, ce);
            }
        }
Beispiel #2
0
        public void CustomHandlerMethod(object customSubject, CustomControlEventArgs ce)
        {
            String message = "This is a custom handler." + "\n";

            message += "My code number is " + code + "\n";
            message += "My Type is " + this.GetType() + "\n";
            message += "I am responding to button: " + btn.Name;
            MessageBox.Show(message);
        }