Compare new file with old copy in cpy-lib

This commit is contained in:
2015-09-03 13:51:22 +02:00
parent b70c342f4c
commit 9f1d527f32
3 changed files with 23 additions and 0 deletions

View File

@ -23,6 +23,7 @@ namespace CobXmlSupport
string oldTxt;
bool bSynch;
string finalFileSafe;
public savedFile SavedFile { get; set; }
@ -336,6 +337,7 @@ namespace CobXmlSupport
saveWin.SavedFile = this.SavedFile;
saveWin.FileData = this.txtCode.Text;
saveWin.ShowDialog();
finalFileSafe = saveWin.finalFileName;
}
private void ShowCode_Load(object sender, EventArgs e)
@ -347,5 +349,11 @@ namespace CobXmlSupport
else btnSaveAktualText.Enabled = true;
}
private void btnCompare_Click(object sender, EventArgs e)
{
string existing = finalFileSafe.Substring(finalFileSafe.LastIndexOf("\\"));
Process.Start("C:\\Program Files (x86)\\WinMerge\\WinMergeU.exe",finalFileSafe +" Q:\\kII20\\cpy\\"+existing);
}
}
}