Пример #1
0
        public void ShowStyles(List <DownloadResult> results)
        {
            styleList.Clear();

            foreach (DownloadResult result in results)
            {
                var item = new StyleListItem();

                item.Click += (object sender, EventArgs e) =>
                {
                    if (ItemClick != null)
                    {
                        ItemClick(sender, e);
                    }
                };

                styleList.AddSubview(item);

                item.Update(result);
            }

            UpdateListLayout();
        }
Пример #2
0
        public void RenderList(List <Octokit.RepositoryContent> contents)
        {
            styleList.Clear();

            foreach (var content in contents)
            {
                var item = new StyleListItem();

                item.Click += (object sender, EventArgs e) =>
                {
                    if (ItemClick != null)
                    {
                        ItemClick(sender, e);
                    }
                };

                styleList.AddSubview(item);

                item.Update(content);
            }

            UpdateListLayout();
        }
Пример #3
0
        public void RenderMap(DownloadResult result, int index)
        {
            StyleListItem item = Items[index];

            item.Update(result);
        }