public void connectVIZ(string tcpadd, string udpadd, int tcpport, int udpport) { ParamsCreateScreenVIZ paramsVIZ = new ParamsCreateScreenVIZ( IPAddress.Parse(tcpadd), tcpport, IPAddress.Parse(udpadd), udpport); string sceneName = TxtScene.Text; if (mGraphicsService != null) { mGraphicsService.Stop(); mGraphicsService = null; } mGraphicsService = GraphicsServiceVAS0Factory.Create(paramsVIZ, sceneName, mComputerVisionManager); mGraphicsService.RenderEngine.CommandValueSentEvent += RenderEngine_CommandValueSentEvent; mGraphicsService.RenderEngine.CommandAnimationSentEvent += RenderEngine_CommandAnimationSentEvent; mGraphicsService.Start(); }