Beispiel #1
0
        public void Load([NotNull] ContentEditor editor)
        {
            Assert.ArgumentNotNull(editor, nameof(editor));

            contentEditor = editor;
            RenderInfo();
        }
Beispiel #2
0
        public ContentEditorFieldContext([NotNull] ContentEditor contentEditor, [NotNull] Field field, [NotNull] object source)
        {
            Assert.ArgumentNotNull(contentEditor, nameof(contentEditor));
            Assert.ArgumentNotNull(field, nameof(field));
            Assert.ArgumentNotNull(source, nameof(source));

            ContentEditor = contentEditor;
            Field         = field;
            Source        = source;
        }
Beispiel #3
0
        public ContentEditorSectionContext([NotNull] ContentEditor contentEditor, [NotNull] ItemUri itemUri, [NotNull] string sectionName, [NotNull] Icon sectionIcon)
        {
            Assert.ArgumentNotNull(contentEditor, nameof(contentEditor));
            Assert.ArgumentNotNull(itemUri, nameof(itemUri));
            Assert.ArgumentNotNull(sectionName, nameof(sectionName));
            Assert.ArgumentNotNull(sectionIcon, nameof(sectionIcon));

            ContentEditor  = contentEditor;
            SectionItemUri = itemUri;
            SectionName    = sectionName;
            SectionIcon    = sectionIcon;
        }
Beispiel #4
0
        public ContentEditorContext([NotNull] ContentEditor contentEditor)
        {
            Assert.ArgumentNotNull(contentEditor, nameof(contentEditor));

            ContentEditor = contentEditor;
        }
Beispiel #5
0
        public void Initialize([NotNull] ContentEditor contentEditor)
        {
            Assert.ArgumentNotNull(contentEditor, nameof(contentEditor));

            ContentEditor = contentEditor;
        }