Beispiel #1
0
        internal MappingUpdateSubscriber(MappingObject <T> aTarget, Control aSubject, bool aAllowNulls, ListControlMapping aListControlMapping)
        {
            target = aTarget;

            //we add a fake control if aSubject is null.
            if (aSubject == null)
            {
                subject = new Control(); //this was legacy.. it was used to map values we didn't need to show, but might need to manipulate
            }
            else
            {
                subject = aSubject;
            }

            allowsNulls = aAllowNulls;

            listControlMapping = aListControlMapping;

            HookControl();
        }
Beispiel #2
0
 internal MappingUpdateSubscriber(MappingObject <T> aTarget, Control aSubject)
     : this(aTarget, aSubject, false, ListControlMapping.Index)
 {
 }
Beispiel #3
0
 internal MappingUpdateSubscriber(MappingObject <T> aTarget, Control aSubject, bool aAllowNulls)
     : this(aTarget, aSubject, aAllowNulls, ListControlMapping.Index)
 {
 }
Beispiel #4
0
 internal void AttachTo(MappingObject <T> aTarget)
 {
     target = aTarget;
     HookControl();
 }