Esempio n. 1
0
        public int LoginAdmin(string password)
        {
            int num = -1;

            try
            {
                if (this.IsConnected)
                {
                    num = CiteDLL.XX_CheckSystemPwd(this.CamSerial, password);
                }
            }
            catch
            {
            }
            return(num);
        }
Esempio n. 2
0
        public bool CheckAdminPassword(string pwd, bool mount_usb)
        {
            bool flag = false;

            try
            {
                if (CiteDLL.XX_CheckSystemPwd(this.CamSerial, pwd, mount_usb) == 0)
                {
                    flag = true;
                }
            }
            catch (Exception exception)
            {
                flag = false;
            }
            return(flag);
        }