private bool ClassFilterMatch(Spell item) { if (classFilter == null) { return(true); } else { return(item.LevelForClass(CharacterClass.GetEnum(classFilter)) != null); } }
bool ClassFilter(Spell item) { if (_Class == "All Classes") { return(true); } else { var en = CharacterClass.GetEnum(_Class); return(item.LevelForClass(en) != null); } }
private bool LevelFilterMatch(Spell item) { if (levelFilter == null) { return(true); } else if (classFilter == null) { return(item.IsLevel(levelFilter.Value)); } else { return(item.LevelForClass(CharacterClass.GetEnum(classFilter)) == levelFilter); } }
bool LevelFilter(Spell item) { if (_Level == -1) { return(true); } if (_Class == "All Classes") { return(item.IsLevel(_Level)); } else { var en = CharacterClass.GetEnum(_Class); return(item.LevelForClass(en) == _Level); } }