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"); } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }