Ejemplo n.º 1
0
        void DisConnectBackCallFunc(int lLoginID, string pchDVRIP, int nDVRPort, IntPtr dwUser)
        {
            for (int i = 0; i < 16; i++)
            {
                if (lLoginID == m_videoform[i].GetLoginHandle())
                {
                    m_videoform[i].OnDisconnct();
                }
            }


            foreach (DEV_INFO devinfo in dictDevInfo.Values)
            {
                if (devinfo.lLoginID == lLoginID)
                {
                    XMSDK.H264_DVR_Logout(lLoginID);
                    dictDevInfo.Remove(devinfo.lLoginID);
                    dictDiscontDev.Add(devinfo.lLoginID, devinfo);
                    break;
                }
            }

            if (dictDiscontDev.Count > 0)
            {
                timerDisconnect.Enabled = true;
                timerDisconnect.Start();
            }
        }
Ejemplo n.º 2
0
        private void ClientDemo_FormClosed(object sender, FormClosedEventArgs e)
        {
            foreach (DEV_INFO devinfo in dictDevInfo.Values)
            {
                XMSDK.H264_DVR_Logout(devinfo.lLoginID);
            }

            timerDisconnect.Stop();
        }