[This is preliminary documentation and is subject to change.]
This method lets you declare the events that must be subscribed to.
Namespace:
Forcepoint.GUISSAssembly: Forcepoint.GUISS (in Forcepoint.GUISS.dll) Version: 0.2.0.1 (0.2.0.1)
Syntax
C# |
---|
public abstract List<SubscribedEvent> DeclareEventsToSubscribeTo() |
Return Value
new List<SubscribedEvent>()Examples
CopyC#
public override List<SubscribedEvent> DeclareEventsToSubscribeTo() { List<SubscribedEvent> tmp = new List<SubscribedEvent>(); tmp.Add(new SubscribedEvent(null, "Load", new Subscriber.GenericEventHandler(MainForm_Load))); tmp.Add(new SubscribedEvent("btn_Open", "Click", new Subscriber.GenericEventHandler(btn_Open_Click))); tmp.Add(new SubscribedEvent("btn_Save", "Click", new Subscriber.GenericEventHandler(btn_Save_Click))); tmp.Add(new SubscribedEvent("btn_SaveAs", "Click", new Subscriber.GenericEventHandler(btn_SaveAs_Click))); tmp.Add(new SubscribedEvent("btn_ChangeColor", "Click", new Subscriber.GenericEventHandler(btn_ChangeColor_Click))); return tmp; }