예제 #1
0
        public void SetInt1000WithTypeDirect()
        {
            mod1 = PerformanceModel.Create(PropBagTypeSafetyMode.AllPropsMustBeRegistered, _viewModelFactory);
            mod1.PropertyChanged  += Mod1_PropertyChanged;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                mod1.SetIt <int>(cntr, "PropInt");
            }
        }
예제 #2
0
        public void SetInt1000WithTypeTypedSub()
        {
            mod1 = PerformanceModel.Create(PropBagTypeSafetyMode.AllPropsMustBeRegistered, _viewModelFactory);
            mod1.SubscribeToPropChanged <int>(Mod1_PropertyChangedTyped, "PropInt");

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                //mod1.SetIt<int>(cntr, "PropInt");
                mod1.PropInt = cntr;
            }
        }
예제 #3
0
        public void SetInt1000Regular()
        {
            mod1 = PerformanceModel.Create(PropBagTypeSafetyMode.AllPropsMustBeRegistered, _viewModelFactory);
            mod1.PropertyChanged  += Mod1_PropertyChanged;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                mod1.PropIntStandard = cntr;
            }
        }
예제 #4
0
        public void SetInt1000Index()
        {
            mod1 = PerformanceModel.Create(PropBagTypeSafetyMode.None, _viewModelFactory);
            mod1.PropertyChanged  += Mod1_PropertyChanged;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                mod1[typeof(int), "PropInt"] = cntr;
                //mod1["System.Int32","PropInt"] = cntr;
            }
        }
예제 #5
0
        public void SetInt1000UsingTypeProp()
        {
            mod1 = PerformanceModel.Create(PropBagTypeSafetyMode.AllPropsMustBeRegistered, _viewModelFactory);
            mod1.PropertyChanged  += Mod1_PropertyChangedNoStore;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            IProp <int> typedProp = mod1.GetTypedProp <int>("PropInt", mustBeRegistered: true, neverCreate: false);

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                typedProp.TypedValue = cntr;
            }
        }
예제 #6
0
        public void SetString1000WithNoStore()
        {
            mod1 = PerformanceModel.Create(PropBagTypeSafetyMode.AllPropsMustBeRegistered, _viewModelFactory);
            mod1.PropertyChanged  += Mod1_PropertyChangedNoStore;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            string val;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                val = cntr.ToString();
                mod1.PropStringNoStore = val;
            }
        }
예제 #7
0
        public void SetString1000NoType()
        {
            mod1 = PerformanceModel.Create(PropBagTypeSafetyMode.None, _viewModelFactory);
            mod1.PropertyChanged  += Mod1_PropertyChanged;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            string val;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                val = cntr.ToString();
                mod1["System.String", "PropString"] = val;
            }
        }