示例#1
0
 private void verify_police_finger()
 {
     pictureBox1.Image = Properties.Resources.f1;
     pictureBox2.Image = Properties.Resources.finger_check;
     message.Visible = false;
     FingerVerify fv_police = new FingerVerify("用枪警员");
     while (_continue)
     {
         //播放音效
         PlaySound.paly(Properties.Resources._4);
         //验证指纹
         //如果验证通过
         //if (fv_police.verifyFinger())
         if(true)
         {
             pictureBox1.Image = Properties.Resources.f9;
             //语音提示
             PlaySound.paly(Properties.Resources._7);
             break;
         }
         else
         {
             pictureBox1.Image = Properties.Resources.f2;
             //语音提示
             PlaySound.paly(Properties.Resources._33);
         }
     }
 }
示例#2
0
 private void verify_gunarkAdmin()
 {
     pictureBox1.Image = Properties.Resources.f7;
     pictureBox2.Image = Properties.Resources.finger_check;
     message.Visible = false;
     FingerVerify fv_gunarkAdmin = new FingerVerify("枪柜管理员");
     //验证枪柜枪员指纹
     while (_continue)
     {
         //播放音效
         PlaySound.paly(Properties.Resources._26);
         //如果验证通过(假设通过)
         //if (fv_gunarkAdmin.verifyFinger())
         if (true)
         {
             result = true;
             pictureBox1.Image = Properties.Resources.f9;
             //语音提示
             PlaySound.paly(Properties.Resources._7);
             break;
         }
         else
         {
             pictureBox1.Image = Properties.Resources.f8;
             //语音提示
             PlaySound.paly(Properties.Resources._32);
         }
     }
 }
示例#3
0
 private void verify_leader_finger()
 {
     pictureBox1.Image = Properties.Resources.f3;
     pictureBox2.Image = Properties.Resources.finger_check;
     message.Visible = false;
     FingerVerify fv_dutyLeader = new FingerVerify("当班领导");
     //验证当班领导指纹具体方法
     while (_continue)
     {
         //语音提示
         PlaySound.paly(Properties.Resources._5);
         //验证指纹
         //if (fv_dutyLeader.verifyFinger())
         if (true)
         {
             pictureBox1.Image = Properties.Resources.f9;
             result = true;
             //语音提示
             PlaySound.paly(Properties.Resources._7);
             break;
         }
         else
         {
             pictureBox1.Image = Properties.Resources.f6;
             //语音提示
             PlaySound.paly(Properties.Resources._34);
         }
     }
 }
示例#4
0
 private void verify_boss_finger()
 {
     pictureBox1.Image = Properties.Resources.f5;
     pictureBox2.Image = Properties.Resources.finger_check;
     message.Visible = false;
     FingerVerify fv_bossLeader = new FingerVerify("主管领导");
     //验证主管领导指纹
     while (_continue)
     {
         //播放音效
         PlaySound.paly(Properties.Resources._28);
         //如果验证通过
         //if (fv_bossLeader.verifyFinger())
         if (true)
         {
             result = true;
             pictureBox1.Image = Properties.Resources.f9;
             //语音提示
             PlaySound.paly(Properties.Resources._7);
             break;
         }
         else
         {
             pictureBox1.Image = Properties.Resources.f4;
             //语音提示
             PlaySound.paly(Properties.Resources._8);
         }
     }
 }