|
@@ -207,16 +207,18 @@ namespace UAS_XmlAnalysor
|
|
|
{
|
|
{
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
- for (int i = 1; i <= 10; i++)
|
|
|
|
|
|
|
+ for (int i = 1; i <= 20; i++)
|
|
|
{
|
|
{
|
|
|
if (!File.Exists(BackUpFolderPath.Text + @"\" + e.Name))
|
|
if (!File.Exists(BackUpFolderPath.Text + @"\" + e.Name))
|
|
|
{
|
|
{
|
|
|
file.MoveTo(BackUpFolderPath.Text + @"\" + e.Name);
|
|
file.MoveTo(BackUpFolderPath.Text + @"\" + e.Name);
|
|
|
|
|
+ OperateResult.AppendText("成功解析文件" + e.Name + "\n");
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
else if (!File.Exists(BackUpFolderPath.Text + @"\" + e.Name.Split('.')[0] + "(" + i + ")" + "." + e.Name.Split('.')[1]))
|
|
else if (!File.Exists(BackUpFolderPath.Text + @"\" + e.Name.Split('.')[0] + "(" + i + ")" + "." + e.Name.Split('.')[1]))
|
|
|
{
|
|
{
|
|
|
file.MoveTo(BackUpFolderPath.Text + @"\" + e.Name.Split('.')[0] + "(" + i + ")" + "." + e.Name.Split('.')[1]);
|
|
file.MoveTo(BackUpFolderPath.Text + @"\" + e.Name.Split('.')[0] + "(" + i + ")" + "." + e.Name.Split('.')[1]);
|
|
|
|
|
+ OperateResult.AppendText("成功解析文件" + e.Name + "\n");
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -274,12 +276,9 @@ namespace UAS_XmlAnalysor
|
|
|
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
|
|
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
|
|
|
{
|
|
{
|
|
|
string ExitConfirm = MessageBox.Show(this, "确认退出?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
|
|
string ExitConfirm = MessageBox.Show(this, "确认退出?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
|
|
|
- if (ExitConfirm == "Yes")
|
|
|
|
|
- {
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
|
|
+ if (ExitConfirm != "Yes")
|
|
|
{
|
|
{
|
|
|
|
|
+ WindowState = FormWindowState.Minimized;
|
|
|
e.Cancel = true;
|
|
e.Cancel = true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|