|
|
@@ -203,10 +203,15 @@ namespace OTSPartA_STDEditor
|
|
|
saveFile.Title = "Please select the path which to save the file";
|
|
|
saveFile.Filter = "Database File(*.db)|*.db";
|
|
|
saveFile.InitialDirectory = Application.StartupPath + "\\Config\\SysData\\";
|
|
|
- saveFile.OverwritePrompt = true; //是否覆盖当前文件
|
|
|
+ saveFile.OverwritePrompt = false; //是否覆盖当前文件
|
|
|
//saveFile.RestoreDirectory = true; //还原上次目录
|
|
|
if (saveFile.ShowDialog() == DialogResult.OK)
|
|
|
{
|
|
|
+ if(STDDBAddress== saveFile.FileName)
|
|
|
+ {
|
|
|
+ MessageBox.Show("不能另存为同名文件!", "Tip");
|
|
|
+ return;
|
|
|
+ }
|
|
|
System.IO.File.Copy(STDDBAddress, saveFile.FileName, true);
|
|
|
bool result = SaveAsDictionaryToClassify(saveFile.FileName);
|
|
|
STDDBAddress = saveFile.FileName;
|