The ShowTeachRequest event is triggered when the runtime system requests the view to display a teach class.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
event EventHandler<ShowClassRecallScreenEventArgs> ShowTeachRequest
Using the IConnection Interface for the ShowTeachRequest Event
The following code is an example of using the ShowTeachRequest event:
// Register for the event ABSConnection.ShowTeachRequest += HandleTeachRequest; // HandleTeachRequest is the handler for processing the // ShowTeachRequest event when the Host application sets the cursor // to a specific field in the DataModel. public void HandleTeachRequest(object sender, ShowClassRecallScreenEventArgs args) { // Retrieve the Teach screen information string teachScreen = args.Name; // Name of the Teach string ownerIspec = args.Owner; // Ispec or class that owns // the Teach screen ApplicationLogger.LogInfo(() => string.Format("Display Teach screen: {0} for ispec {1}", teachScreen, ownerIspec)); }