Пример #1
0
        public CameraClosedCategoryElement(CategoryJSON inCategory)
        {
            category = inCategory;

            PropertyInfo o = GlobalSingletonHelpers.GetProperty(this, "categoryName");

            o.SetValue(this, category.description);
        }
Пример #2
0
        public LeaderboardElement(string title, long categoryId, IList <SKBitmap> bitmaps, IList <LeaderboardJSON> photoMeta)
        {
            //public MyRowElement(string title, string msg, Color textColor) {
            this.title      = title;
            this.categoryId = categoryId;
            int i        = 0;
            int maxIndex = (9 < bitmaps.Count) ? 9 : bitmaps.Count;

            while (i < maxIndex)
            {
                PropertyInfo o = GlobalSingletonHelpers.GetProperty(this, "bitmap" + i);
                o.SetValue(this, bitmaps[i]);

                string       nameStr = "bmp" + i + "Meta";
                PropertyInfo p       = GlobalSingletonHelpers.GetProperty(this, nameStr);
                p.SetValue(this, LeaderboardJSON.Convert(photoMeta[i]));

                i++;
            }
        }