/// <summary> /// Helper. /// </summary> void SetObjectPropertyValueByTag(object tag, object value) { if (tag is string) {// This is a dynamic generic property. _selectedObject.SetPropertyValue(tag as string, value); } else if (tag is PropertyInfo) {// Direct property of the indicator. ((PropertyInfo)tag).SetValue(_selectedObject, value, null); } else { //SystemMonitor.Error("Unrecognized tag type for indicator property."); } _selectedObject.PropertyChanged(); }