public void BindModel(IModelUpdator modelUpdator) { Mandate.ParameterNotNull(modelUpdator, "updator"); //bind this model, this will also update the NewProperty model //since the prefixes are aligned. modelUpdator.BindModel(this, string.Empty); //bind custom properties foreach (var p in Properties) { modelUpdator.BindModel(p, p.Id.GetHtmlId()); //bind the override pre-values if (p.PreValueEditor != null) { modelUpdator.BindModel(p.PreValueEditor, string.Concat(p.Id.GetHtmlId(), ".PreValueEditor")); } } //bind the tabs foreach (var t in DefinedTabs) { if (!t.Id.IsNullValueOrEmpty()) { modelUpdator.BindModel(t, t.Id.GetHtmlId()); } } }
/// <summary> /// Bind the model /// </summary> /// <param name="modelUpdator"></param> public void BindModel(IModelUpdator modelUpdator) { Mandate.ParameterNotNull(modelUpdator, "updator"); modelUpdator.BindModel(PreValueEditorModel, "PreValueEditorModel"); modelUpdator.BindModel(this, string.Empty); }
/// <summary> /// Binds the model with the IUpdator /// </summary> /// <param name="modelUpdator"></param> public void BindModel(IModelUpdator modelUpdator) { Mandate.ParameterNotNull(modelUpdator, "updator"); //First, bind the dynamic properties, then the normal properties, this is because we are overriding the 'Name' //property which comes from the NodeName dynamic property foreach (var contentNodeProperty in Properties.Where(x => x.PropertyEditorModel != null)) { modelUpdator.BindModel(contentNodeProperty.PropertyEditorModel, contentNodeProperty.Id.GetHtmlId()); } modelUpdator.BindModel(this, string.Empty); }
/// <summary> /// Binds the model with the IUpdator /// </summary> /// <param name="modelUpdator"></param> public void BindModel(IModelUpdator modelUpdator) { Mandate.ParameterNotNull(modelUpdator, "updator"); //First, bind the dynamic properties, then the normal properties, this is because we are overriding the 'Name' //property which comes from the NodeName dynamic property foreach (var macroParameter in MacroParameters.Where(x => x.ParameterEditorModel != null)) { modelUpdator.BindModel(macroParameter.ParameterEditorModel.PropertyEditorModel, macroParameter.Alias); } modelUpdator.BindModel(this, string.Empty); }
public void BindModel(IModelUpdator modelUpdator) { modelUpdator.BindModel(this, string.Empty); }