Exemplo n.º 1
0
        public void Initialize([NotNull] TemplateDesigner templateDesigner, [NotNull] TemplateDesigner.TemplateField field)
        {
            Assert.ArgumentNotNull(templateDesigner, nameof(templateDesigner));
            Assert.ArgumentNotNull(field, nameof(field));

            TemplateDesigner = templateDesigner;
            Field            = field;

            Update();
        }
        public void Initialize([NotNull] TemplateDesigner templateDesigner, [NotNull] TemplateDesigner.TemplateSection section)
        {
            Assert.ArgumentNotNull(templateDesigner, nameof(templateDesigner));
            Assert.ArgumentNotNull(section, nameof(section));

            TemplateDesigner = templateDesigner;
            Section          = section;

            Update();
        }
            public Context([NotNull] TemplateDesigner templateDesigner, [NotNull] List <TemplateSection> sections, [NotNull] string templateName, [NotNull] ItemUri templateUri, [NotNull] List <ItemId> baseTemplates)
            {
                Assert.ArgumentNotNull(templateDesigner, nameof(templateDesigner));
                Assert.ArgumentNotNull(sections, nameof(sections));
                Assert.ArgumentNotNull(templateName, nameof(templateName));
                Assert.ArgumentNotNull(templateUri, nameof(templateUri));
                Assert.ArgumentNotNull(baseTemplates, nameof(baseTemplates));

                Sections         = sections;
                TemplateName     = templateName;
                TemplateUri      = templateUri;
                TemplateDesigner = templateDesigner;
                BaseTemplates    = baseTemplates;
            }