private void buttonDelete_Click(object sender, EventArgs e) { if (_identity == null) { Log(string.Format("Please do Identity first.")); } else { try { WinBio.DeleteTemplate(_session, _unitId, _identity, (WinBioBiometricSubType)comboBoxFp.SelectedIndex); Log(string.Format("Delete Done.")); } catch (WinBioException ex) { Log(ex); } } }