예제 #1
0
        private Dictionary <int, string> GetUsersFromAtt()
        {
            string name = "", password = "";
            int    enrollno = 0, privilage = 0;
            bool   enabled = false;

            Dictionary <int, string> res = new Dictionary <int, string>();

            if (_axCZKEM1.ReadAllUserID(_iMachineNumber))
            {
                while (_axCZKEM1.GetAllUserInfo(_iMachineNumber, ref enrollno, ref name, ref password, ref privilage, ref enabled))
                {
                    if (!res.ContainsKey(enrollno))
                    {
                        res[enrollno] = name;
                    }
                }
            }

            return(res);
        }