public async Task OnInputValueChanged(IMField pField, IMPropertyInfo pPropertyInfo, object pNewValue) { ChangedValues.Add(pPropertyInfo); if (OnValueChanged.HasDelegate) { await OnValueChanged.InvokeAsync(new MFormValueChangedArgs <T>(pField, pPropertyInfo, pNewValue, Model)); } }
public async Task OnInputValueChanged(IMField pField, IMPropertyInfo pPropertyInfo, object pNewValue) { if (!ChangedValues.Contains(pPropertyInfo)) { ChangedValues.Add(pPropertyInfo); } if (OnValueChanged.HasDelegate) { await OnValueChanged.InvokeAsync(new MFormValueChangedArgs <T>(pField, pPropertyInfo, pNewValue, Model)); } if (mEditContext != null && pField is IMPropertyField propertyField) { mEditContext.NotifyFieldChanged(mEditContext.Field(propertyField.Property)); } }