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