예제 #1
0
        protected EditorResult Editor(ElementEditorContext context, params dynamic[] editorShapes)
        {
            foreach (var editorShape in editorShapes)
            {
                if (String.IsNullOrWhiteSpace(editorShape.Metadata.Position))
                {
                    editorShape.Metadata.Position = "Properties:0";
                }
            }

            var result = new EditorResult {
                Editors = editorShapes.ToList()
            };

            return(result);
        }
예제 #2
0
 public ElementEditorContext()
 {
     EditorResult = new EditorResult();
 }