예제 #1
0
        public void RenderKudos(LcdsResponseString totalKudos)
        {
            KudosListView.Items.Clear();
            totalKudos.Value = totalKudos.Value.Replace("{\"totals\":[0,", string.Empty).Replace("]}", string.Empty);
            var kudos = totalKudos.Value.Split(',');
            var item  = new KudosItem("Friendly", kudos[0])
            {
                Height = 52
            };

            KudosListView.Items.Add(item);
            item = new KudosItem("Helpful", kudos[1])
            {
                Height = 52
            };
            KudosListView.Items.Add(item);
            item = new KudosItem("Teamwork", kudos[2])
            {
                Height = 52
            };
            KudosListView.Items.Add(item);
            item = new KudosItem("Honorable Opponent", kudos[3])
            {
                Height = 52
            };
            KudosListView.Items.Add(item);
        }
예제 #2
0
        public void RenderKudos(LcdsResponseString TotalKudos)
        {
            KudosListView.Items.Clear();
            TotalKudos.Value = TotalKudos.Value.Replace("{\"totals\":[0,", "").Replace("]}", "");
            string[]  Kudos = TotalKudos.Value.Split(',');
            KudosItem item  = new KudosItem("Friendly", Kudos[0]);

            KudosListView.Items.Add(item);
            item = new KudosItem("Helpful", Kudos[1]);
            KudosListView.Items.Add(item);
            item = new KudosItem("Teamwork", Kudos[2]);
            KudosListView.Items.Add(item);
            item = new KudosItem("Honorable Opponent", Kudos[3]);
            KudosListView.Items.Add(item);
        }