private Color GetCellBackColor()
        {
            Color result = BackColor;

            if (BackColor.IsEmpty && GetLegend() != null)
            {
                if (legendItem != null)
                {
                    int num = legendItem.Cells.IndexOf(this);
                    if (num >= 0 && num < GetLegend().CellColumns.Count&& !GetLegend().CellColumns[num].BackColor.IsEmpty)
                    {
                        result = GetLegend().CellColumns[num].BackColor;
                    }
                }
                if (result.IsEmpty && GetLegend().InterlacedRows&& rowIndex % 2 != 0)
                {
                    result = ((!GetLegend().InterlacedRowsColor.IsEmpty) ? GetLegend().InterlacedRowsColor : ((GetLegend().BackColor == Color.Empty) ? Color.LightGray : ((!(GetLegend().BackColor == Color.Transparent)) ? MapGraphics.GetGradientColor(GetLegend().BackColor, Color.Black, 0.2) : ((!(GetLegend().Common.MapCore.BackColor != Color.Transparent) || !(GetLegend().Common.MapCore.BackColor != Color.Black)) ? Color.LightGray : MapGraphics.GetGradientColor(GetLegend().Common.MapCore.BackColor, Color.Black, 0.2)))));
                }
            }
            return(result);
        }