Пример #1
0
        public void LoadBadges(int userid)
        {
            DataTable Data = Engine.dbManager.ReadTable("SELECT * FROM members_emblems WHERE userid = '" + userid + "'");

            foreach (DataRow Row in Data.Rows)
            {
                Emblems Emblem = new Emblems()
                {
                    ID     = (int)Row["id"],
                    Badge  = Row["badge"].ToString(),
                    SlotID = (int)Row["slotid"]
                };

                Badges.Add(Emblem.Badge, Emblem);
            }
        }
Пример #2
0
        public void LoadBadges(int userid)
        {
            DataTable Data = Engine.dbManager.ReadTable("SELECT * FROM members_emblems WHERE userid = '" + userid + "'");

            foreach (DataRow Row in Data.Rows)
            {
                Emblems Emblem = new Emblems()
                {
                    ID = (int)Row["id"],
                    Badge = Row["badge"].ToString(),
                    SlotID = (int)Row["slotid"]
                };

                Badges.Add(Emblem.Badge, Emblem);
            }
        }