Ejemplo n.º 1
0
        private void connect(int i)
        {
            IpCameraHandler cam = new IpCameraHandler();

            cam.CameraStateChanged += ModelCameraStateChanged;
            cam.CameraErrorOccured += ModelCameraErrorOccured;
            cam.ConnectOnvifCamera("192.168.226.10" + i + ":80;Username=admin;Password=123456;Transport=UDP;");
            kamerak[i] = cam;
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int i = int.Parse(textBox1.Text);

            IpCameraHandler cam = new IpCameraHandler();

            cam.CameraStateChanged += ModelCameraStateChanged;
            cam.CameraErrorOccured += ModelCameraErrorOccured;
            cam.ConnectOnvifCamera("192.168.226.10" + i + ":80;Username=admin;Password=123456;Transport=UDP;");
            kamerak[i] = cam;
        }