Ejemplo n.º 1
0
        private void FrontCamera_DoubleClick(object sender, EventArgs e)
        {
            this.cfm = new CameraForm(url);

            cfm.ShowDialog();
            //if (imagemax1 == false)
            //{
            //    FrontCamera.Location = new System.Drawing.Point(-200, 260);
            //    FrontCamera.Size = new System.Drawing.Size(500, 400);
            //    imagemax1 = true;
            //}
            //else
            //{
            //    FrontCamera.Location = new System.Drawing.Point(30, 53);
            //    FrontCamera.Size = new System.Drawing.Size(309, 246);
            //    imagemax1 = false;
            //}
        }
Ejemplo n.º 2
0
        private void BackCamera_DoubleClick(object sender, EventArgs e)
        {
            //camera2.Interrupt();
            //captureCam2.Release();
            //frameCam2.Release();

            this.cfm = new CameraForm(url2);

            cfm.ShowDialog();
            //if(imagemax2 == false)
            //{
            //    BackCamera.Location = new System.Drawing.Point(BackCamera.Location.X - 50, BackCamera.Location.Y - 80);
            //    BackCamera.Size = new System.Drawing.Size(BackCamera.Size.Width + 50, BackCamera.Size.Height + 80);
            //    imagemax2 = true;
            //}
            //else
            //{
            //    BackCamera.Location = new System.Drawing.Point(30, 311);
            //    BackCamera.Size = new System.Drawing.Size(309, 271);
            //    imagemax2 = false;
            //}
        }