Added a message to the release text which identifies when a format is changed.

This commit is contained in:
Rich 2014-09-12 13:57:23 +00:00
parent 7d1441c999
commit 9efdfd46c7

View File

@ -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<FileCompare> _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);