Enhanced: rename a method name for clarification

Enhanced: convert 16-32 bit link data at procedure level
Enhanced: convert 16-32 bit link data at procedure level.
This commit is contained in:
2016-05-12 12:48:34 +00:00
parent 1934a6b5e9
commit 15f3b2ce09
5 changed files with 90 additions and 25 deletions

View File

@@ -1399,11 +1399,27 @@ namespace Volian.Controls.Library
}
}
}
public void CreateLinksEnhancedSteps(ItemInfo srcII, ItemInfo enhII, int enhtype)
public void CreateLinksEnhancedSingleItem(ItemInfo srcII, ItemInfo enhII, int enhtype)
{
srcII.DoCreateLinksEnhancedSteps(enhII, enhtype);
srcII.DoCreateLinksEnhancedSingleItem(enhII, enhtype);
SetFocus();
}
public void CreateLinksEnhancedAllInProcedure(ItemInfo srcII, ItemInfo enhII, int enhtype)
{
using (ContentInfoList cil = ContentInfoList.Convert16To32EnhancedContents(srcII.ItemID, enhII.ItemID, enhtype))
{
foreach (ContentInfo ci in cil)
{
using (Content c = ci.Get())
{
// first refresh configs because the ContentInfo.Refresh causes events to occur that refresh screen
// and if configs aren't done first, the screen refresh, if based on config data, will not be correct.
foreach (ItemInfo ii in ci.ContentItems) ii.RefreshConfig();
ContentInfo.Refresh(c);
}
}
}
}
public void UnlinkEnhanced(ItemInfo enhII)
{
enhII.DoUnlinkEnhanced(enhII);