⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appdata.cs

📁 DigitalPersona.rar
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace UI_Support
{
	public delegate void OnChangeHandler();
	
	// Keeps application-wide data shared among forms and provides notifications about changes
	//
	// Everywhere in this application a "document-view" model is used, and this class provides
	// a "document" part, whereas forms implement a "view" parts.
	// Each form interested in this data keeps a reference to it and synchronizes it with own 
	// controls using the OnChange() event and the Update() notificator method.
	//
	public class AppData
    {
		public const int MaxFingers = 10;
		// shared data
        public int EnrolledFingersMask = 0;
		public int MaxEnrollFingerCount = MaxFingers;
        public bool IsEventHandlerSucceeds = true;
        public bool IsFeatureSetMatched = false;
        public int FalseAcceptRate = 0;
		public DPFP.Template[] Templates = new DPFP.Template[MaxFingers];

		// data change notification
		public void Update() { OnChange(); }		// just fires the OnChange() event
		public event OnChangeHandler OnChange;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -