Esempio n. 1
0
    public int FpDeleteUser(string aUserID)
    {
        _TG.OcxClassID = ENROLL_CLSID;
        int result = _TG.DeleteUser(aUserID);

        if (result != SUCCESSED && this.blDefaultAlert)
        {
            ErrMsgDlg();
        }
        return(result);
    }
Esempio n. 2
0
    protected void btnDeleteUser_Click(object sender, EventArgs e)
    {
        GetXParam();
        int    intIndex      = this.cboProductType.SelectedIndex + 1;
        string strDeviceType = _IniFile.IniReadValue(TRUSTLINK_INI_DEVICE_TYPE, TRUSTLINK_INI_SET_DEVICE_TYPE + intIndex.ToString());

        _TG.DeviceType = strDeviceType;
        if (_TG.DeleteUser(this.txtDeleteUser.Text.Trim()) == SUCCESSED)
        {
            ShowMyMessage(Resources.TrustLinkGeneralSampleFormRes.ResourceManager.GetString("IDS_DELETE_SUCCESS", AP_culture));
        }
        else
        {
            ErrMsgDlg(_TG);
        }
    }