Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private bool UpdateViewValue(IBindingWrapper wrapper)
        {
            var context = currentContex;

            if (!IsAlive)
            {
                Dispose();
                return(false);
            }
            else if (context != null)
            {
                wrapper.UpdateViewValue(context);
                return(true);
            }

            return(true);
        }