Enhanced: Refresh enhanced procedure’s text if different from source (prompt user)
This commit is contained in:
parent
289db67a2b
commit
609ddb1962
@ -931,6 +931,22 @@ namespace Volian.Controls.Library
|
||||
pg.Selected = true;
|
||||
HandleChangeId(myItemInfo, pg);
|
||||
SelectDisplayTabItem(pg);
|
||||
|
||||
// If this is an enhanced document, check for refresh of text items:
|
||||
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);
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user