diff --git a/PROMS/Sync/Sync/frmSync.cs b/PROMS/Sync/Sync/frmSync.cs index cf9a0ec4..57d2c80a 100644 --- a/PROMS/Sync/Sync/frmSync.cs +++ b/PROMS/Sync/Sync/frmSync.cs @@ -476,6 +476,12 @@ namespace Sync AddText(rtb, fntBoldItalic, "*\tThis change includes format changes\r\n\twhich must be loaded into the databases.",Color.Orange); AddText(rtb, fntNormal, "\r\n\r\n",Color.Black); } + if (HasFormats(_CheckedOut)) + { + sb.Append("* This change includes format changes which must be loaded into the databases.\r\n\r\n"); + AddText(rtb, fntBoldItalic, "*\tThis change includes format changes\r\n\twhich must be loaded into the databases.", Color.Orange); + AddText(rtb, fntNormal, "\r\n\r\n", Color.Black); + } if (HasPromsFixes(_CheckedOut)) { sb.Append("* This change includes changes to PROMSFixes.SQL which must be loaded into the databases.\r\n\r\n"); @@ -577,6 +583,15 @@ namespace Sync } return false; } + private bool HasFormats(List _CheckedOut) + { + foreach (FileCompare fc in _CheckedOut) + { + if (fc.ToProcess && fc.FileName.ToLower().Contains("\\formats\\")) + return true; + } + return false; + } private void AddIndent(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0);