private TemporadaTimeCommand EstatisticaOponenteTime(IList <TemporadaTimeCommand> times, ISheet sheet, IRow row, int indice)
        {
            row = sheet.GetRow(indice);
            var estatisticaOponenteTime = new EstatisticaPer36();

            estatisticaOponenteTime.ArremessosConvertidos     = double.Parse(EstatisticaFormatada(row.GetCell(5).ToString()));
            estatisticaOponenteTime.ArremessosTentados        = double.Parse(EstatisticaFormatada(row.GetCell(6).ToString()));
            estatisticaOponenteTime.PorcentagemArremessos     = PorcentagemFormatada(row.GetCell(7).ToString());
            estatisticaOponenteTime.Arremessos3Pontos         = double.Parse(EstatisticaFormatada(row.GetCell(8).ToString()));
            estatisticaOponenteTime.Arremessos3PontosTentados = double.Parse(EstatisticaFormatada(row.GetCell(9).ToString()));
            estatisticaOponenteTime.Porcentagem3Pontos        = PorcentagemFormatada(row.GetCell(10).ToString());
            estatisticaOponenteTime.Arremessos2Pontos         = double.Parse(EstatisticaFormatada(row.GetCell(11).ToString()));
            estatisticaOponenteTime.Arremessos2PontosTentados = double.Parse(EstatisticaFormatada(row.GetCell(12).ToString()));
            estatisticaOponenteTime.Porcentagem2Pontos        = PorcentagemFormatada(row.GetCell(13).ToString());
            estatisticaOponenteTime.LancesLivres            = double.Parse(EstatisticaFormatada(row.GetCell(14).ToString()));
            estatisticaOponenteTime.LancesLivresTentados    = double.Parse(EstatisticaFormatada(row.GetCell(15).ToString()));
            estatisticaOponenteTime.PorcentagemLancesLivres = PorcentagemFormatada(row.GetCell(16).ToString());
            estatisticaOponenteTime.RebotesOfensivos        = double.Parse(EstatisticaFormatada(row.GetCell(17).ToString()));
            estatisticaOponenteTime.RebotesDefensivos       = double.Parse(EstatisticaFormatada(row.GetCell(18).ToString()));
            estatisticaOponenteTime.TotalRebotes            = double.Parse(EstatisticaFormatada(row.GetCell(19).ToString()));
            estatisticaOponenteTime.Assistencias            = double.Parse(EstatisticaFormatada(row.GetCell(20).ToString()));
            estatisticaOponenteTime.RoubosBola       = double.Parse(EstatisticaFormatada(row.GetCell(21).ToString()));
            estatisticaOponenteTime.Tocos            = double.Parse(EstatisticaFormatada(row.GetCell(22).ToString()));
            estatisticaOponenteTime.DesperdiciosBola = double.Parse(EstatisticaFormatada(row.GetCell(23).ToString()));
            estatisticaOponenteTime.Faltas           = double.Parse(EstatisticaFormatada(row.GetCell(24).ToString()));
            estatisticaOponenteTime.Pontos           = double.Parse(EstatisticaFormatada(row.GetCell(25).ToString()));

            var time = times.FirstOrDefault(x => x.Nome == row.GetCell(2).ToString().Replace("*", ""));

            time.EstatisticaOponenteTime = estatisticaOponenteTime;

            return(time);
        }
        private TemporadaTimeCommand EstatisticaTime(ISheet sheet, IRow row, int indice)
        {
            row = sheet.GetRow(indice);
            var estatisticaTime = new EstatisticaPer36();

            estatisticaTime.ArremessosConvertidos     = double.Parse(EstatisticaFormatada(row.GetCell(5).ToString()));
            estatisticaTime.ArremessosTentados        = double.Parse(EstatisticaFormatada(row.GetCell(6).ToString()));
            estatisticaTime.PorcentagemArremessos     = PorcentagemFormatada(row.GetCell(7).ToString());
            estatisticaTime.Arremessos3Pontos         = double.Parse(EstatisticaFormatada(row.GetCell(8).ToString()));
            estatisticaTime.Arremessos3PontosTentados = double.Parse(EstatisticaFormatada(row.GetCell(9).ToString()));
            estatisticaTime.Porcentagem3Pontos        = PorcentagemFormatada(row.GetCell(10).ToString());
            estatisticaTime.Arremessos2Pontos         = double.Parse(EstatisticaFormatada(row.GetCell(11).ToString()));
            estatisticaTime.Arremessos2PontosTentados = double.Parse(EstatisticaFormatada(row.GetCell(12).ToString()));
            estatisticaTime.Porcentagem2Pontos        = PorcentagemFormatada(row.GetCell(13).ToString());
            estatisticaTime.LancesLivres            = double.Parse(EstatisticaFormatada(row.GetCell(14).ToString()));
            estatisticaTime.LancesLivresTentados    = double.Parse(EstatisticaFormatada(row.GetCell(15).ToString()));
            estatisticaTime.PorcentagemLancesLivres = PorcentagemFormatada(row.GetCell(16).ToString());
            estatisticaTime.RebotesOfensivos        = double.Parse(EstatisticaFormatada(row.GetCell(17).ToString()));
            estatisticaTime.RebotesDefensivos       = double.Parse(EstatisticaFormatada(row.GetCell(18).ToString()));
            estatisticaTime.TotalRebotes            = double.Parse(EstatisticaFormatada(row.GetCell(19).ToString()));
            estatisticaTime.Assistencias            = double.Parse(EstatisticaFormatada(row.GetCell(20).ToString()));
            estatisticaTime.RoubosBola       = double.Parse(EstatisticaFormatada(row.GetCell(21).ToString()));
            estatisticaTime.Tocos            = double.Parse(EstatisticaFormatada(row.GetCell(22).ToString()));
            estatisticaTime.DesperdiciosBola = double.Parse(EstatisticaFormatada(row.GetCell(23).ToString()));
            estatisticaTime.Faltas           = double.Parse(EstatisticaFormatada(row.GetCell(24).ToString()));
            estatisticaTime.Pontos           = double.Parse(EstatisticaFormatada(row.GetCell(25).ToString()));

            var time = new TemporadaTimeCommand();

            time.Ano   = Int32.Parse(row.GetCell(0).ToString());
            time.Nome  = row.GetCell(2).ToString().Replace("*", "");
            time.Sigla = row.GetCell(26) != null?row.GetCell(26).ToString() : string.Empty;

            time.Conferencia = row.GetCell(27) != null?row.GetCell(27).ToString() : string.Empty;

            time.EstatisticaTime = estatisticaTime;

            return(time);
        }
        private double ObterValorEstatistica(TipoCategoria tipoCategoria, EstatisticaPer36 estatistica)
        {
            switch (tipoCategoria)
            {
            case TipoCategoria.Arremessos2Pontos:
            {
                return(estatistica.Arremessos2Pontos);
            }

            case TipoCategoria.Arremessos2PontosTentados:
            {
                return(estatistica.Arremessos2PontosTentados);
            }

            case TipoCategoria.Arremessos3Pontos:
            {
                return(estatistica.Arremessos3Pontos);
            }

            case TipoCategoria.Arremessos3PontosTentados:
            {
                return(estatistica.Arremessos3PontosTentados);
            }

            case TipoCategoria.ArremessosConvertidos:
            {
                return(estatistica.ArremessosConvertidos);
            }

            case TipoCategoria.ArremessosTentados:
            {
                return(estatistica.ArremessosTentados);
            }

            case TipoCategoria.Assistencias:
            {
                return(estatistica.Assistencias);
            }

            case TipoCategoria.DesperdiciosBola:
            {
                return(estatistica.DesperdiciosBola);
            }

            case TipoCategoria.Faltas:
            {
                return(estatistica.Faltas);
            }

            case TipoCategoria.LancesLivres:
            {
                return(estatistica.LancesLivres);
            }

            case TipoCategoria.LancesLivresTentados:
            {
                return(estatistica.LancesLivresTentados);
            }

            case TipoCategoria.Pontos:
            {
                return(estatistica.Pontos);
            }

            case TipoCategoria.Porcentagem2Pontos:
            {
                return(estatistica.Porcentagem2Pontos);
            }

            case TipoCategoria.Porcentagem3Pontos:
            {
                return(estatistica.Porcentagem3Pontos);
            }

            case TipoCategoria.PorcentagemArremessos:
            {
                return(estatistica.PorcentagemArremessos);
            }

            case TipoCategoria.PorcentagemLancesLivres:
            {
                return(estatistica.PorcentagemLancesLivres);
            }

            case TipoCategoria.RebotesDefensivos:
            {
                return(estatistica.RebotesDefensivos);
            }

            case TipoCategoria.RebotesOfensivos:
            {
                return(estatistica.RebotesOfensivos);
            }

            case TipoCategoria.RoubosBola:
            {
                return(estatistica.RoubosBola);
            }

            case TipoCategoria.Tocos:
            {
                return(estatistica.Tocos);
            }

            case TipoCategoria.TotalRebotes:
            {
                return(estatistica.TotalRebotes);
            }

            default:
                return(0);
            }
        }