Esempio n. 1
0
        private void GrabarForm_Load(object sender, EventArgs e)
        {
            var cam1 = CameraMgr.GetCamera(CameraIndex.Cam1);
            var cam2 = CameraMgr.GetCamera(CameraIndex.Cam2);

            if (!(cam1 is null))
            {
                cam1.FrameReviced += Cam1_FrameReviced;
            }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //Inicio las camaras aqui porque tardan en cargar
            CameraMgr.AddCamera(Auxiliares.CameraFactory(CameraIndex.Cam1));
            CameraMgr.AddCamera(Auxiliares.CameraFactory(CameraIndex.Cam2));

            Application.Run(new MainForm());
        }
Esempio n. 3
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     CameraMgr.CloseCameras();
 }