Form1.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
using System.Collections;
using System.IO;
using System.Configuration;
// 下载于www.51aspx.com
namespace NoRepeatition
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
private void btnOpen_Click(object sender, EventArgs e)
{
try
{
//"C:\\Documents and Settings\\Administrator\\桌面" //注意这里写路径时要用c:\\而不是c:\
ofdXML.InitialDirectory = Environment.CurrentDirectory;
ofdXML.Filter = "XML文件|*.XML";
ofdXML.RestoreDirectory = true;
ofdXML.FilterIndex = 1;
this.ofdXML.ShowDialog();
this.txtOpenPath.Text = this.ofdXML.FileName;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void button1_Click(object sender, EventArgs e)
{
if (this.txtOpenPath.Text.Trim().Equals(""))
{
this.lblOpen.Visible = true;
this.lblOpen.Text = "路径不能为空!";
return;
}
else
this.lblOpen.Visible = false;
if (this.txtSavePath.Text.Trim().Equals(""))
{
this.lblSave.Visible = true;
this.lblSave.Text = "路径不能为空!";
return;
}
else
后面还有 115 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。