C2019-045: Fix length of procedure number for CCR to work

C2019-045: For enhanced procedures, allow modification of number & title
This commit is contained in:
2019-12-13 11:51:15 +00:00
parent 5109fbbddb
commit beed3319ca
7 changed files with 618 additions and 31 deletions

View File

@@ -1080,9 +1080,11 @@ namespace Volian.Controls.Library
ItemInfoList iil = pi.FindEnhancedProcedureTextDifferences();
if (iil != null)
{
if (FlexibleMessageBox.Show(this, "Text differences were found between this enhanced procedure and its source procedure. Do you want to refresh the text in this procedure?", "Confirm Text Refresh", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
// C2019-045: See if this is a procedure & modifications are allowed, if that case, don't prompt:
bool doMsg = true;
if (iil.Count == 1 && iil[0].EnhAllowMod()) doMsg = false;
if (doMsg && FlexibleMessageBox.Show(this, "Text differences were found between this enhanced procedure and its source procedure. Do you want to refresh the text in this procedure?", "Confirm Text Refresh", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
{
pi.EnhancedProcedureRefreshTextDifferences(iil);
}
}