RuntimeManagerClientConnected Event |
Namespace: OpenTestSystem.Otx.Runtime.Api
static class Program { static void Main() { RuntimeManager rt = new RuntimeManager(); rt.Load("C:\\Sample.ptx"); rt.ClientConnected += new OpenTestSystem.Otx.Runtime.Api.Event.ClientConnectedHandler(ClientConnected); rt.Connect("192.168.1.30", 1001); } private static void ClientConnected(string hostIpAddress, string hostName) { Console.WriteLine(string.Format("Connect to {0} ({1}) successfully.", hostIpAddress, hostName)); } }