Пример #1
0
        private void RaisePropertyChanged(string propertyName)
        {
            if (!ReadyForBind())
            {
                return;
            }
            for (int i = 0; i < attachedBinders.Count; i++)
            {
                ABinder binder      = attachedBinders[i];
                Object  unityObject = binder.Target;

                if (unityObject != null && !unityObject)
                {
                    attachedBinders.RemoveAt(i);
                    i--;
                    continue;
                }

                binder.RebindOnPropertyChanged(propertyName);
            }
        }
Пример #2
0
 public void DetachBinder(ABinder binder)
 {
     attachedBinders.Remove(binder);
 }
Пример #3
0
 public void AttachBinder(ABinder binder)
 {
     attachedBinders.Add(binder);
 }