fixed cache bugs
This commit is contained in:
parent
96e8b9f22f
commit
22cc96e2b1
@ -50,9 +50,12 @@ namespace MifareOneTool
|
|||||||
ofd.Title = "请选择MFD文件保存位置及文件名";
|
ofd.Title = "请选择MFD文件保存位置及文件名";
|
||||||
ofd.OverwritePrompt = true;
|
ofd.OverwritePrompt = true;
|
||||||
ofd.Filter = "MFD文件|*.mfd";
|
ofd.Filter = "MFD文件|*.mfd";
|
||||||
|
if (File.Exists(omfd) && new FileInfo(omfd).Length > 1)
|
||||||
|
{
|
||||||
if (ofd.ShowDialog() == DialogResult.OK)
|
if (ofd.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
if(File.Exists(ofd.FileName)){
|
if (File.Exists(ofd.FileName))
|
||||||
|
{
|
||||||
File.Delete(ofd.FileName);
|
File.Delete(ofd.FileName);
|
||||||
}
|
}
|
||||||
File.Move(omfd, ofd.FileName);
|
File.Move(omfd, ofd.FileName);
|
||||||
@ -63,8 +66,14 @@ namespace MifareOneTool
|
|||||||
File.Delete(omfd);
|
File.Delete(omfd);
|
||||||
logAppend("##未保存##");
|
logAppend("##未保存##");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
File.Delete(omfd);
|
||||||
|
logAppend("##缓存文件异常##");
|
||||||
|
}
|
||||||
omfd = "";
|
omfd = "";
|
||||||
Text = "MifareOne Tool - 运行完毕";
|
Text = "MifareOne Tool - 运行完毕";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||||
// 方法是按如下所示使用“*”:
|
// 方法是按如下所示使用“*”:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.3.2.0")]
|
[assembly: AssemblyVersion("1.3.3.0")]
|
||||||
[assembly: AssemblyFileVersion("1.3.2.0")]
|
[assembly: AssemblyFileVersion("1.3.3.0")]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user