Click or drag to resize
TapiAppGenerated Event
Notifies the application that DTMF digit generation has terminated.

Namespace: Traysoft.AddTapi
Assembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax
public static event TapiGeneratedEventHandler Generated

Value

Type: Traysoft.AddTapiTapiGeneratedEventHandler
Remarks

Generated event is used to notify the application that the current digit or tone generation has terminated. Only one such generation request can be in progress an a given call at any time. This event is also fired when digit or tone generation is canceled.

Note Note
In Windows Forms and WPF applications AddTapi.NET executes the handler of this event on the main thread of the application (the thread that called Initialize(String)). It is safe to access Windows Forms or WPF controls from the event handler without using Invoke mechanism.
Examples
The following code shows how to handle Generated event.
TapiApp.Initialize("MyApp");
TapiApp.Generated += OnGenerated;
...

void OnGenerated(object sender, TapiGeneratedEventArgs args)
{
    Console.WriteLine("Digit generation terminated on line {0}: {1}", args.Line.Name, args.Mode);
}
See Also