internal static void SyncProperty(BaseItem item, string propertyName) { if (item.GlobalName.Length > 0) { PropertyDescriptor propDesc = TypeDescriptor.GetProperties(item)[propertyName]; SetPropertyByGlobalName(GetOwner(item), item.GetType(), item.GlobalName, propDesc, propDesc.GetValue(item)); } else if (item.Name.Length > 0) { PropertyDescriptor propDesc = TypeDescriptor.GetProperties(item)[propertyName]; SetProperty(GetOwner(item), item.GetType(), item.Name, propDesc, propDesc.GetValue(item)); } }