.NET Customisation User Guide

.NET Customisation : How to Write a CAF Addin : Communicating through Events and Delegate Call-backs
Events discusses use of the built-in database events.
Add an Event to the Addin describes an example of using the NetGridControl and its standard events.
Command Events describes the standard events associated with a .NET Command object.
/// <summary>Event Handler definition for My Control</summary>
public delegate void MyControlEventHandler(ArrayList args);
/// <summary>After Data Filter is changed</summary>
public event MyControlEventHandler DataFilterChanged;
/// <summary>Another event ...</summary>
public event MyControlEventHandler AnotherEvent;
if (DataFilterChanged != null)
    ArrayList args = new ArrayList();
    // set args as required ...
    new MyControlEventHandler (myControl_DataFilterChanged);
/// <summary>Handle the consequences of a changed data filter</summary>
private void myControl_DataFilterChanged(ArrayList args)

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo