예제 #1
0
        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));
            }
        }
예제 #2
0
        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));
            }
        }