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