コード例 #1
0
        public Image GenerateProxyImage(Dictionary <string, string> values, string specialPath)
        {
            TemplateDefinition cardDef = TemplateSelector.GetTemplate(values);
            Image ret = ProxyGenerator.GenerateProxy(BlockManager, cardDef, values, specialPath);

            return(ret);
        }
        public override int GetItemViewType(int position)
        {
            int viewType = base.GetItemViewType(position);

            var template = TemplateSelector.GetTemplate(adapter, position);

            lock (lockObj)
            {
                viewType = templates.IndexOf(template);

                if (viewType < 0)
                {
                    templates.Add(template);
                    viewType = templates.Count - 1;
                }
            }

            return(viewType);
        }