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; }
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."); } }
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; } }