private void onContainerPropChange(CswNbtNodeProp Prop) { if (null != Container.RelatedNodeId) { Container.setReadOnly(value: true, SaveToDb: true); if (null == Material.RelatedNodeId) { CswNbtObjClassContainer NodeAsContainer = _CswNbtResources.Nodes[Container.RelatedNodeId]; if (null != NodeAsContainer) { Material.RelatedNodeId = NodeAsContainer.Material.RelatedNodeId; } } } }