private void AddBinding(IBindingWrapper wrapper) { allBindings.Add(wrapper); if (wrapper.IgnoreContextChanges) { return; } if (!bindingsMap.TryGetValue(wrapper.PropertyName, out ICollection <IBindingWrapper> toPropertyBindings)) { toPropertyBindings = new List <IBindingWrapper>(); bindingsMap[wrapper.PropertyName] = toPropertyBindings; } toPropertyBindings.Add(wrapper); }
private bool UpdateViewValue(IBindingWrapper wrapper) { var context = currentContex; if (!IsAlive) { Dispose(); return(false); } else if (context != null) { wrapper.UpdateViewValue(context); return(true); } return(true); }