Keep special characters for Enhanced Document Text

This commit is contained in:
Rich
2016-08-11 19:31:52 +00:00
parent d42a05a1f4
commit d46ee4e39c
3 changed files with 75 additions and 7 deletions

View File

@@ -933,20 +933,21 @@ namespace Volian.Controls.Library
SelectDisplayTabItem(pg);
// If this is an enhanced document, check for refresh of text items:
if (myItemInfo.IsProcedure)
{
//if (myItemInfo.IsProcedure)
//{
// make the myiteminfo into a procedureinfo (depending on where this is called from, just
// casting it crashed:
ProcedureInfo pi = ProcedureInfo.Get(myItemInfo.ItemID);
ProcedureInfo pi = ProcedureInfo.Get(myItemInfo.MyProcedure.ItemID);
ItemInfoList iil = pi.FindEnhancedProcedureTextDifferences();
if (iil != null)
{
if (MessageBox.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);
}
}
}
//}
}
pg.MyStepTabPanel.MyProcedureItemInfo = proc;