Ejemplo n.º 1
0
        public WinZKFinger()
        {
            InitializeComponent();

            WindowsFormsHost host = new WindowsFormsHost();

            zkFinger = new AxZKFPEngXControl.AxZKFPEngX();
            zkFinger.OnImageReceived += new AxZKFPEngXControl.IZKFPEngXEvents_OnImageReceivedEventHandler(zkFinger_OnImageReceived);
            zkFinger.OnFeatureInfo   += new AxZKFPEngXControl.IZKFPEngXEvents_OnFeatureInfoEventHandler(zkFinger_OnFeatureInfo);
            zkFinger.OnEnroll        += new AxZKFPEngXControl.IZKFPEngXEvents_OnEnrollEventHandler(zkFinger_OnEnroll);
            zkFinger.OnCapture       += new AxZKFPEngXControl.IZKFPEngXEvents_OnCaptureEventHandler(zkFinger_OnCapture);

            host.Child = zkFinger;
            grid1.Children.Add(host);
        }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //_synth.SelectVoice("Microsoft Lili");
            //_synth.Rate = -2;
            FingerMainForm mainForm = new FingerMainForm();

            notifiedTargetList.Add("mainForm", mainForm);
            g_ZKFP = new AxZKFPEngXControl.AxZKFPEngX();
            initialAxZKFP();
            test_device_connection();
            Application.Run(mainForm);
            //Application.Run(new FingerDemo());
            //_synth.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult, 1, new System.Globalization.CultureInfo("zh-CHS"));
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MemberFingerForm));
     this.panel1 = new System.Windows.Forms.Panel();
     this.label6 = new System.Windows.Forms.Label();
     this.btnCancel = new System.Windows.Forms.Button();
     this.GboxFinger = new System.Windows.Forms.GroupBox();
     this.axZKFPEngX1 = new AxZKFPEngXControl.AxZKFPEngX();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.LableInfo = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     this.GboxFinger.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.axZKFPEngX1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(240)))), ((int)(((byte)(225)))));
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.btnCancel);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 452);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(443, 49);
     this.panel1.TabIndex = 38;
     //
     // label6
     //
     this.label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label6.Dock = System.Windows.Forms.DockStyle.Top;
     this.label6.Location = new System.Drawing.Point(0, 0);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(443, 2);
     this.label6.TabIndex = 34;
     this.label6.Text = "会员类型";
     //
     // btnCancel
     //
     this.btnCancel.AutoSize = true;
     this.btnCancel.BackColor = System.Drawing.Color.Orange;
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.White;
     this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.LightBlue;
     this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.LightBlue;
     this.btnCancel.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.btnCancel.ImageIndex = 1;
     this.btnCancel.Location = new System.Drawing.Point(15, 6);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(412, 37);
     this.btnCancel.TabIndex = 24;
     this.btnCancel.TabStop = false;
     this.btnCancel.Text = "取消";
     this.btnCancel.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnCancel.UseVisualStyleBackColor = false;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // GboxFinger
     //
     this.GboxFinger.Controls.Add(this.axZKFPEngX1);
     this.GboxFinger.Controls.Add(this.pictureBox1);
     this.GboxFinger.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.GboxFinger.Location = new System.Drawing.Point(12, 12);
     this.GboxFinger.Name = "GboxFinger";
     this.GboxFinger.Size = new System.Drawing.Size(418, 384);
     this.GboxFinger.TabIndex = 40;
     this.GboxFinger.TabStop = false;
     this.GboxFinger.Text = "指纹信息";
     //
     // axZKFPEngX1
     //
     this.axZKFPEngX1.Enabled = true;
     this.axZKFPEngX1.Location = new System.Drawing.Point(132, 162);
     this.axZKFPEngX1.Name = "axZKFPEngX1";
     this.axZKFPEngX1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axZKFPEngX1.OcxState")));
     this.axZKFPEngX1.Size = new System.Drawing.Size(24, 24);
     this.axZKFPEngX1.TabIndex = 42;
     this.axZKFPEngX1.Visible = false;
     this.axZKFPEngX1.OnCapture += new AxZKFPEngXControl.IZKFPEngXEvents_OnCaptureEventHandler(this.axZKFPEngX1_OnCapture);
     this.axZKFPEngX1.OnImageReceived += new AxZKFPEngXControl.IZKFPEngXEvents_OnImageReceivedEventHandler(this.axZKFPEngX1_OnImageReceived);
     this.axZKFPEngX1.OnFeatureInfo += new AxZKFPEngXControl.IZKFPEngXEvents_OnFeatureInfoEventHandler(this.axZKFPEngX1_OnFeatureInfo);
     this.axZKFPEngX1.OnEnroll += new AxZKFPEngXControl.IZKFPEngXEvents_OnEnrollEventHandler(this.axZKFPEngX1_OnEnroll);
     //
     // pictureBox1
     //
     this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pictureBox1.Location = new System.Drawing.Point(3, 26);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new System.Drawing.Size(412, 355);
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop = false;
     //
     // LableInfo
     //
     this.LableInfo.AutoSize = true;
     this.LableInfo.Location = new System.Drawing.Point(12, 413);
     this.LableInfo.Name = "LableInfo";
     this.LableInfo.Size = new System.Drawing.Size(0, 18);
     this.LableInfo.TabIndex = 41;
     //
     // MemberFingerForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 17F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(240)))), ((int)(((byte)(225)))));
     this.CancelButton = this.btnCancel;
     this.ClientSize = new System.Drawing.Size(443, 501);
     this.Controls.Add(this.LableInfo);
     this.Controls.Add(this.GboxFinger);
     this.Controls.Add(this.panel1);
     this.Font = new System.Drawing.Font("宋体", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.KeyPreview = true;
     this.Margin = new System.Windows.Forms.Padding(4);
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "MemberFingerForm";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "会员指纹信息";
     this.Load += new System.EventHandler(this.MemberCardUsingForm_Load);
     this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form_KeyDown);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.GboxFinger.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.axZKFPEngX1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 4
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //_synth.SelectVoice("Microsoft Lili");
     //_synth.Rate = -2;
     FingerMainForm mainForm = new FingerMainForm();
     notifiedTargetList.Add("mainForm", mainForm);
     g_ZKFP = new AxZKFPEngXControl.AxZKFPEngX();
     initialAxZKFP();
     test_device_connection();
     Application.Run(mainForm);
     //Application.Run(new FingerDemo());
     //_synth.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult, 1, new System.Globalization.CultureInfo("zh-CHS"));
 }
Ejemplo n.º 5
0
 private void Form1_Load(object sender, EventArgs e)
 {
     CreateTree(treeView1);
     initMachine();
     gZK = axZKFPEngX1;
 }