コード例 #1
0
        void ZKFPEng_OnEnroll(object sender, IZKFPEngXEvents_OnEnrollEvent e)
        {
            bool   ret          = e.actionResult;
            string userTemplate = "";

            enrolling = false;
            if (ret)
            {
                userTemplate = ZKFPEng.GetTemplateAsStringEx("10");
                int score = 0, processedFPNumber = 0;
                if (ZKFPEng.IsOneToOneTemplateStr(userTemplate) || (ZKFPEng.IdentificationInFPCacheDB(FPCache, e.aTemplate, ref score, ref processedFPNumber) != -1 && FPTable.ContainsKey(processedFPNumber)))
                {
                    userTemplate = string.Empty;
                    ret          = false;
                }
            }
            OnEnrolled(new EnrolledEventArgs(ret, userTemplate));
        }