Пример #1
0
        /// <summary>
        /// 登录硬盘录像机(默认)
        /// </summary>
        public void SetLogin()
        {
            string DVRIPAddress  = SystemClass.DVRIPAddress;
            short  DVRPortNumber = SystemClass.DVRPortNumber;
            string DVRUserName   = SystemClass.DVRUserName;
            string DVRPassword   = SystemClass.DVRPassword;

            m_lUserID = SDKCommon.SetLogin(DVRIPAddress, DVRPortNumber, DVRUserName, DVRPassword);
            if (m_lUserID != -1)
            {
                //DebugInfo("登录硬盘录像机成功!");
            }
            else
            {
                //DebugInfo("登录硬盘录像机失败!");
                return;
            }
        }
Пример #2
0
        /// <summary>
        /// 登录硬盘录像机(默认)
        /// </summary>
        public void SetLogin()
        {
            string DVRIPAddress  = Common.DVRIP;
            short  DVRPortNumber = short.Parse(Common.DVRServerPort);
            string DVRUserName   = Common.DVRLoginName;
            string DVRPassword   = Common.DVRPwd;

            m_lUserID = SDKCommon.SetLogin(DVRIPAddress, DVRPortNumber, DVRUserName, DVRPassword);
            if (m_lUserID != -1)
            {
                //DebugInfo("登录硬盘录像机成功!");
            }
            else
            {
                //DebugInfo("登录硬盘录像机失败!");
                return;
            }
        }