Пример #1
0
 private void SetValueForInitCam(ref InitCam initCam, ref Int32 userId, DevInfo devInfo, PictureBox pictureBox, ref bool isSetted)
 {
     initCam.DevInfo = new DevInfo();
     if (!isSetted)
     {
         initCam.UserId        = userId;
         initCam.m_lRealHandle = -1;
         isSetted = true;
     }
     initCam.DevInfo    = devInfo;
     initCam.PictureBox = pictureBox;
 }
Пример #2
0
        private void initCam(object obj)
        {
            InitCam camInfo = obj as InitCam;

            if (camInfo.DevInfo.IP != "")
            {
                loginButton(ref camInfo.DevInfo, ref camInfo.UserId, camInfo.m_lRealHandle);
                Thread.Sleep(2000);
                previewBtn(camInfo.UserId, ref camInfo.m_lRealHandle, camInfo.PictureBox, camInfo.DevInfo.StreamType);
            }
            else
            {
                MessageBox.Show("Configure caminfo.ini file.");
            }
        }
Пример #3
0
        private void initCam(object obj)
        {
            InitCam camInfo = obj as InitCam;

            if (camInfo.DevInfo.IP != "")
            {
                //loginButton(ref camInfo.DevInfo, ref camInfo.UserId);//, camInfo.m_lRealHandle);
                ArgsEvent("Initialize camera...");
                Thread.Sleep(2000);
                //previewBtn(camInfo.UserId, ref camInfo.m_lRealHandle, camInfo.PictureBox, camInfo.DevInfo.StreamType);
            }
            else
            {
                return;
            }
        }