Example #1
0
 public ITile Create(ITileEntry entry, TilesFactory factory)
 {
     return(new TemplateOveridingDefinitionTile(entry.Name,
                                                factory.GetTemplate(entry, true),
                                                new TileReference(entry.Extends, factory.Map),
                                                factory.CreateAttributes(entry)));
 }
 public ITile Create(ITileEntry entry, TilesFactory factory)
 {
     return new TemplateOveridingDefinitionTile(entry.Name,
                                            factory.GetTemplate(entry, true),
                                            new TileReference(entry.Extends, factory.Map),
                                            factory.CreateAttributes(entry));
 }
 public TileAttribute Create(IAttributeEntry entry, TilesFactory factory)
 {
     var template = factory.GetTemplate(entry, false);
     if (template!=null)
     {
         return new TileAttribute(entry.Name, new TemplateTile(null, template, null));
     }
     return new TileAttribute(entry.Name,
                              new TileReference(entry.Value, factory.Map, new StringTile(entry.Value)));
 }
        public TileAttribute Create(IAttributeEntry entry, TilesFactory factory)
        {
            var template = factory.GetTemplate(entry, false);

            if (template != null)
            {
                return(new TileAttribute(entry.Name, new TemplateTile(null, template, null)));
            }
            return(new TileAttribute(entry.Name,
                                     new TileReference(entry.Value, factory.Map, new StringTile(entry.Value))));
        }
Example #5
0
 public ITile Create(ITileEntry entry, TilesFactory factory)
 {
     return new TemplateTile(entry.Name, factory.GetTemplate(entry, true), factory.CreateAttributes(entry));
 }
 public TileAttribute Create(IAttributeEntry entry, TilesFactory factory)
 {
     return new TileAttribute(entry.Name, new TemplateTile(null, factory.GetTemplate(entry, true), null));
 }
Example #7
0
 public TileAttribute Create(IAttributeEntry entry, TilesFactory factory)
 {
     return(new TileAttribute(entry.Name, new TemplateTile(null, factory.GetTemplate(entry, true), null)));
 }
Example #8
0
 public ITile Create(ITileEntry entry, TilesFactory factory)
 {
     return(new TemplateTile(entry.Name, factory.GetTemplate(entry, true), factory.CreateAttributes(entry)));
 }