/// <summary> /// 删除文件 /// </summary> /// <param name="fileID"></param> /// <returns></returns> public static bool DeleteFile(ushort fileID) { //默认进行身份验证 Auth(); ApduMsg msg = cpuCard.DeleteFile(fileID); if (msg.IsSuccess) { return(true); } return(false); }
private void button2_Click(object sender, EventArgs e) { textBox1.Text = ""; int max = Convert.ToInt32(textBox2.Text); DeCardReader deCardReader = new DeCardReader(); CpuCard CardReader = new CpuCard(deCardReader); for (ushort i = 1; i <= max; i++) { ApduMsg m = CardReader.DeleteFile(i); textBox1.AppendText("删除文件:" + i + "\r\n"); } }