protected virtual int GetSortLabelHue(int index, int pageIndex, PvPProfile entry) { if (entry != null) { if (SortOrder == PvPProfileRankOrder.None) { return(index <= AutoPvP.CMOptions.Advanced.Seasons.TopListCount ? HighlightHue : TextHue); } return(AutoPvP.GetSortedValue(SortOrder, entry, Season) <= 0 ? ErrorHue : TextHue); } return(ErrorHue); }
protected virtual string GetSortLabelText(int index, int pageIndex, PvPProfile entry) { if (entry != null) { var key = "Rank"; long val = index; if (SortOrder != PvPProfileRankOrder.None) { key = SortOrder.ToString().SpaceWords().ToUpperWords(); val = AutoPvP.GetSortedValue(SortOrder, entry, Season); } return(String.Format("{0}: {1:#,0}", key, val)); } return(String.Empty); }