登录 注册
当前位置:主页 > 资源下载 > 3 > 密码管理专家个人修改版源码下载

密码管理专家个人修改版源码下载

  • 更新:2024-12-04 23:34:26
  • 大小:1.57MB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Java - 后端
  • 格式:RAR

资源介绍

密码管理专家个人修改版源码。。 private void tsmiLoad_Click(object sender, EventArgs e) { this.Hide(); if (ofdKey.ShowDialog() == DialogResult.OK) { if (ofdKey.OpenFile() != null) { dsReadKey.ReadXml(@ofdKey.FileName); foreach (DataRow readKeyRow in dsReadKey.Tables["UserKey"].Rows) { DataRow newRow = dsKey.Tables["UserKey"].NewRow(); newRow["Number"] = readKeyRow["Number"]; newRow["Title"] = readKeyRow["Title"]; newRow["NetAdd"] = readKeyRow["NetAdd"]; newRow["Key"] = readKeyRow["Key"]; newRow["Name"] = readKeyRow["Name"]; newRow["UpdateTime"] = readKeyRow["UpdateTime"]; dsKey.Tables["UserKey"].Rows.Add(newRow); } int number = dsKey.Tables["UserKey"].Rows.Count; for (int i = 0; i < number; i++) { dsKey.Tables["UserKey"].Rows[i]["Number"] = i + 1; } //foreach (DataRow reRow in dsKey.Tables["UserKey"].Rows) //{ // number++; //这里用foreach // reRow["Number"] = number; //} dsKey.WriteXml("UserKey.xml"); } Visible = true; } else { Visible = true; } }