protected override void OnChanged(string propertyName, object oldValue, object newValue) { base.OnChanged(propertyName, oldValue, newValue); switch (propertyName) { case "ImageURLP03": if (oldValue != null && oldValue.ToString() != newValue.ToString()) { ValidateSystem.DeleteToServer(oldValue.ToString()); } break; case "ImageURLP06": if (oldValue != null && oldValue.ToString() != newValue.ToString()) { ValidateSystem.DeleteToServer(oldValue.ToString()); } break; case "ImageURLP07": if (oldValue != null && oldValue.ToString() != newValue.ToString()) { ValidateSystem.DeleteToServer(oldValue.ToString()); } break; case "ImageURLP09": if (oldValue != null && oldValue.ToString() != newValue.ToString()) { ValidateSystem.DeleteToServer(oldValue.ToString()); } break; } }
protected override void OnChanged(string propertyName, object oldValue, object newValue) { base.OnChanged(propertyName, oldValue, newValue); switch (propertyName) { case "ImageURLP01": if (oldValue != null && oldValue.ToString() != newValue.ToString()) { ValidateSystem.DeleteToServer(oldValue.ToString()); } break; //case "TitleVNP01": // URLVNP02 = ValidateSystem.RejectMarks(TitleVNP01, "-"); // break; //case "TitleRUP01": // URLRUP02 = ValidateSystem.RejectMarks(TitleRUP01, "-"); // break; } }