Added column to indicate that changes need to be merged

This commit is contained in:
Rich 2012-11-13 21:29:53 +00:00
parent fbb5023132
commit e977521519
2 changed files with 10 additions and 1 deletions

View File

@ -51,6 +51,12 @@ namespace Sync
{
get { return _ReadOnly; }
}
private bool _Merge = false;
public bool Merge
{
get { return _Merge; }
set { _Merge = value; }
}
public FileCompare(FileInfo development, FileInfo sourceSafe)
{
_Developement = development;

View File

@ -144,8 +144,11 @@ namespace Sync
private void AddToResults(FileInfo fiSS,FileInfo fiDev)
{
FileCompare fc = new FileCompare(fiDev, fiSS);
FileInfo fiMB = new FileInfo(fc.FileName.Replace(tbDevelopment.Text, tbSSMailBox.Text));
if (fiMB.Exists && fiSS.LastWriteTimeUtc != fiMB.LastWriteTimeUtc)
fc.Merge = true;
//if(!_OnlyContentDifferent || (fc.Different && (fc.DevModified != null)))
if (!_OnlyContentDifferent || (fc.Different))
if (!_OnlyContentDifferent || (fc.Different))
_CheckedOut.Add(fc);
//if (tbResults.Text == "") tbResults.Text = "Found:";
//tbResults.Text += "\r\n" + fiDev.FullName + " - " + ((fiDev.Attributes & FileAttributes.ReadOnly) != FileAttributes.ReadOnly ? "" : "ReadOnly");