예제 #1
0
        static public PerformanceDynModel Create(PropBagTypeSafetyMode safetyMode)
        {
            PerformanceDynModel pm = new PerformanceDynModel(safetyMode);

            pm.AddPropNoStore <int>("PropIntNoStore", null, false, null);
            pm.AddPropNoStore <string>("PropStringNoStore", null, false, null);

            return(pm);
        }
예제 #2
0
        public void SetInt1000WithNoStoreDyn()
        {
            mod1Dyn = PerformanceDynModel.Create(PropBagTypeSafetyMode.AllPropsMustBeRegistered);
            mod1    = mod1Dyn as PerformanceDynModel;
            mod1.PropertyChanged  += Mod1_PropertyChangedNoStore;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                mod1.PropIntNoStore = cntr;
            }
        }
예제 #3
0
        public void SetInt1000NoTypeDyn()
        {
            mod1Dyn = PerformanceDynModel.Create(PropBagTypeSafetyMode.None);
            mod1    = mod1Dyn as PerformanceDynModel;
            mod1.PropertyChanged  += Mod1_PropertyChanged;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                mod1[typeof(Int32), "PropInt"] = cntr;
            }
        }
예제 #4
0
        public void SetString1000IndexDyn()
        {
            mod1Dyn = PerformanceDynModel.Create(PropBagTypeSafetyMode.None);
            mod1    = mod1Dyn as PerformanceDynModel;
            mod1.PropertyChanged  += Mod1_PropertyChanged;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            string val;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                val = cntr.ToString();
                mod1["PropString"] = val;
            }
        }
예제 #5
0
        public void SetString1000WithDynProp()
        {
            mod1Dyn = PerformanceDynModel.Create(PropBagTypeSafetyMode.AllPropsMustBeRegistered);
            mod1    = mod1Dyn as PerformanceDynModel;
            mod1.PropertyChanged  += Mod1_PropertyChanged;
            mod1.PropertyChanged2 += Mod1_PropertyChanged2;

            string val;

            for (int cntr = 0; cntr < InterationCount - 1; cntr++)
            {
                val = cntr.ToString();
                mod1Dyn.PropString = val;
            }
        }
예제 #6
0
 public void Destroy()
 {
     mod1.ClearEventSubscribers();
     mod1 = null;
 }