appdata.cs
来自「DigitalPersona.rar」· CS 代码 · 共 32 行
CS
32 行
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 + =
减小字号Ctrl + -
显示快捷键?