Implement the part number as a property and do your logic based of the value of the defined property.