Esempio n. 1
0
        public static FilterItem Create(object[] row)
        {
            int        i    = 0;
            FilterItem item = new FilterItem
            {
                Id   = Convert.ToInt32(row[i++]),
                Name = Convert.ToString(row[i++]),
            };

            return(item);
        }
Esempio n. 2
0
        public FilterItem VerifyFaction(string faction)
        {
            var item = Factions.FirstOrDefault(x => x.NameUri == faction);

            if (item != null)
            {
                item.Active    = true;
                CurrentFaction = item;
                return(item);
            }
            return(null);
        }