Ejemplo n.º 1
0
        public Template([NotNull] IDatabase database, Guid guid, [NotNull] string itemName, [NotNull] string itemIdOrPath) : base(database, guid, itemName, itemIdOrPath)
        {
            BaseTemplatesProperty = NewSourceProperty("BaseTemplates", string.Empty);
            LongHelpProperty      = NewSourceProperty("LongHelp", string.Empty);
            ShortHelpProperty     = NewSourceProperty("ShortHelp", string.Empty);

            Sections = new LockableList <TemplateSection>(this);
        }
Ejemplo n.º 2
0
        public Rendering([NotNull] IDatabase database, [NotNull] ISnapshot snapshot, [NotNull] string itemPath, [NotNull] string itemName, [NotNull] string filePath, [NotNull] string templateIdOrPath) : base(database.Project, snapshot, filePath)
        {
            Database         = database;
            ItemPath         = itemPath;
            ItemName         = itemName;
            TemplateIdOrPath = templateIdOrPath;

            Placeholders = new LockableList <string>(this);
        }
        public TemplateSection([NotNull] Template template, Guid guid)
        {
            Template = template;

            IconProperty        = NewSourceProperty("Icon", string.Empty);
            SectionNameProperty = NewSourceProperty("Name", string.Empty);
            SortorderProperty   = NewSourceProperty("Sortorder", 0);

            Fields = new LockableList <TemplateField>(this);
            Uri    = new ProjectItemUri(template.DatabaseName, guid);
        }