Ejemplo n.º 1
0
        public PropBagDyn(PropBagTypeSafetyMode typeSafetyMode, AbstractPropFactory thePropFactory)
        {
            if (typeSafetyMode == PropBagTypeSafetyMode.OnlyTypedAccess)
            {
                throw new ApplicationException("OnlyTypedAccess is not supported.");
            }

            propBag = new PubPropBag(typeSafetyMode, thePropFactory);
            InterceptEvents(propBag);
        }
Ejemplo n.º 2
0
 public PropBagDyn(ControlModel.PropModel pm)
 {
     propBag = new PubPropBag(pm);
     System.Diagnostics.Debug.Assert(propBag.TypeSafetyMode != PropBagTypeSafetyMode.OnlyTypedAccess, "OnlyTypeAccess is not supported for PropBagDyn.");
     InterceptEvents(propBag);
 }
Ejemplo n.º 3
0
 public PropBagDyn(byte dummy)
 {
     propBag = new PubPropBag(dummy);
 }
Ejemplo n.º 4
0
 public PropBagDyn()
 {
     propBag = new PubPropBag(); // PropBagTypeSafetyMode.AllPropsMustBeRegistered);
     System.Diagnostics.Debug.Assert(propBag.TypeSafetyMode != PropBagTypeSafetyMode.OnlyTypedAccess, "OnlyTypeAccess is not supported for PropBagDyn.");
     InterceptEvents(propBag);
 }