示例#1
0
 private void DeleteElement(CompositeLayoutElementInfo elementInfo, bool forever)
 {
     RemoveElement(elementInfo.Location);
     if (forever)
     {
         _initedElements.TryRemove(elementInfo, out _);
     }
 }
示例#2
0
 private void PlaceElement(CompositeLayoutElementInfo elementInfo)
 {
     AddElement(elementInfo.Location, _initedElements.GetOrAdd(elementInfo, info => GlobalContext.CreateElement(info.ModuleInfo)));
 }