public override void update() { CswNbtMetaDataObjectClass LocationOC = _CswNbtSchemaModTrnsctn.MetaData.getObjectClass( CswEnumNbtObjectClass.LocationClass ); foreach( CswNbtMetaDataNodeType LocationNT in LocationOC.getNodeTypes() ) { CswNbtMetaDataNodeTypeTab LocationSettingsNTT = LocationNT.getNodeTypeTab( "Location Settings" ); if( null != LocationSettingsNTT ) { _CswNbtSchemaModTrnsctn.MetaData.DeleteNodeTypeTab( LocationSettingsNTT ); } } } // update()
public override void update() { // this is also in CswNbtModuleRuleCISPro if( false == _CswNbtSchemaModTrnsctn.Modules.IsModuleEnabled( CswNbtModuleName.CISPro ) ) { CswNbtMetaDataObjectClass LocationOC = _CswNbtSchemaModTrnsctn.MetaData.getObjectClass( NbtObjectClass.LocationClass ); foreach( CswNbtMetaDataNodeType LocationNT in LocationOC.getNodeTypes() ) { CswNbtMetaDataNodeTypeProp LocationContainersGridNTP = LocationNT.getNodeTypeProp( "Containers" ); if( null != LocationContainersGridNTP ) { LocationContainersGridNTP.removeFromAllLayouts(); CswNbtMetaDataNodeTypeTab LocationContainersTab = LocationNT.getNodeTypeTab( "Containers" ); if( LocationContainersTab != null ) { _CswNbtSchemaModTrnsctn.MetaData.DeleteNodeTypeTab( LocationContainersTab ); } } } } } //Update()