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); }
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); }