/// <summary> /// Creates a value editor instance /// </summary> /// <returns></returns> protected virtual ParameterValueEditor CreateValueEditor() { if (ManifestDefinedParameterValueEditor != null) { //detect if the view is a virtual path (in most cases, yes) then convert it if (ManifestDefinedParameterValueEditor.View.StartsWith("~/")) { ManifestDefinedParameterValueEditor.View = IOHelper.ResolveUrl(ManifestDefinedParameterValueEditor.View); } return(ManifestDefinedParameterValueEditor); } //create a new editor var editor = new ParameterValueEditor(); if (_attribute.EditorView.IsNullOrWhiteSpace()) { throw new NotImplementedException("This method must be implemented if a view is not explicitly set"); } editor.View = _attribute.EditorView; return(editor); }
/// <summary> /// Creates a value editor instance /// </summary> /// <returns></returns> protected virtual ParameterValueEditor CreateValueEditor() { if (ManifestDefinedParameterValueEditor != null) { //detect if the view is a virtual path (in most cases, yes) then convert it if (ManifestDefinedParameterValueEditor.View.StartsWith("~/")) { ManifestDefinedParameterValueEditor.View = IOHelper.ResolveUrl(ManifestDefinedParameterValueEditor.View); } return ManifestDefinedParameterValueEditor; } //create a new editor var editor = new ParameterValueEditor(); if (_attribute.EditorView.IsNullOrWhiteSpace()) { throw new NotImplementedException("This method must be implemented if a view is not explicitly set"); } editor.View = _attribute.EditorView; return editor; }