Ejemplo n.º 1
0
        protected List <ClientEffect> GetEffects()
        {
            List <ClientEffect> effects = new List <ClientEffect>();

            effects.Add(new ClientEffect("Comic", ComicUrlHelper.GetImageUrl("Effect/comic.png"), ComicEffectType.Comic));
            effects.Add(new ClientEffect("Color Sketch", ComicUrlHelper.GetImageUrl("Effect/color-sketch.png"), ComicEffectType.ColorSketch));
            effects.Add(new ClientEffect("Pencil Sketch", ComicUrlHelper.GetImageUrl("Effect/pencil-sketch.png"), ComicEffectType.PencilSketch));
            return(effects);
        }
Ejemplo n.º 2
0
        public ClientTemplate(Template source)
        {
            this.TemplateId = source.TemplateId;
            this.Width      = source.Width;
            this.Height     = source.Height;
            this.Ordinal    = source.Ordinal;
            this.Size       = source.Size;
            this.IsDeleted  = source.IsDeleted;

            this.ThumbUrl   = ComicUrlHelper.GetImageUrl(source.Thumb);
            this.FrameCount = source.TemplateItems.Count;

            this.TemplateItems = source.TemplateItems
                                 .ToList()
                                 .Select(i => new ClientTemplateItem(i))
                                 .OrderBy(i => i.Ordinal)
                                 .ToList();
        }