private StaticFarm AddFarm(string name, string tagName) { StaticFarm farm = new StaticFarm(); farm.Name = name; farm.TagName = tagName; farm.DataType = DataType.Farm; return(farm); }
private void btnSave_Click(object sender, EventArgs e) { if (StaticFarm.NewFingerTemplate != null) { this.Close(); StaticFarm.SaveToDB(StaticFarm.NewFingerTemplate); StaticFarm.Label.Visibility = System.Windows.Visibility.Visible; StaticFarm.Button.Visibility = System.Windows.Visibility.Hidden; } else { MessageBox.Show("Add At least One Finger"); } }
private void EnrollmentControl_OnEnroll(object Control, int FingerMask, DPFP.Template Template, ref DPFP.Gui.EventHandlerStatus EventHandlerStatus) { StaticFarm.NewFingerTemplate = Template; StaticFarm.NewFingerBase64String = StaticFarm.ConvertM(Template.Bytes); }