public PropertyModifier GetPropertyModifier(string shapeName, string propertyName)
{
// for renames, check for a shape-specific rename first, then look to
// see if the property is globally renamed
if (ShapeModifiers.ContainsKey(shapeName))
{
var shapeModifiers = ShapeModifiers[shapeName];
if (shapeModifiers.IsModified(propertyName))
return shapeModifiers.PropertyModifier(propertyName);
}
if (ShapeModifiers.ContainsKey(GlobalShapeKey))
{
var globalShapeModifiers = ShapeModifiers[GlobalShapeKey];
if (globalShapeModifiers.IsModified(propertyName))
return globalShapeModifiers.PropertyModifier(propertyName);
}
return null;
}