public void setProp(string aProperty, object aValue) { int featureIndex = aProperty.IndexOf('.'); if ((featureIndex != -1)) { string featurePath = aProperty.Substring(0, featureIndex); string featureProperty = aProperty.Substring((featureIndex + 1)); if ((featurePath == "Soundfile")) { Soundfile.setProp(featureProperty, aValue); } if ((featurePath == "LocationSettings")) { LocationSettings.setProp(featureProperty, aValue); } } }
public void setProp(string aProperty, object aValue) { int featureIndex = aProperty.IndexOf('.'); if ((featureIndex != -1)) { string featurePath = aProperty.Substring(0, featureIndex); string featureProperty = aProperty.Substring((featureIndex + 1)); if ((featurePath == "Soundfile")) { Soundfile.setProp(featureProperty, aValue); } if ((featurePath == "DialogChoice")) { DialogChoice.setProp(featureProperty, aValue); } } }