public DataCleaning(List <string> valores, List <string> atributos, List <string> elementsToAnalyse, int columnIndex, BoxPlotElements boxplot, StatisticAnalysisForm anterior)
 {
     this.valores           = valores;
     this.atributos         = atributos;
     this.anterior          = anterior;
     this.elementsToAnalyse = elementsToAnalyse;
     this.columnIndex       = columnIndex;
     this.boxplot           = boxplot;
     InitializeComponent();
     makeGrid();
     optionsWatch.Items.Add("Con reemplazo");
     optionsWatch.Items.Add("Sin reemplazo");
     transformacionValores.Items.Add("Min - Max");
     transformacionValores.Items.Add("Z-score Desviacion Estandar");
     transformacionValores.Items.Add("Z-score Desviacion Media Absoluta");
 }
        private void tablaPrincipal_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int           columnIndex    = e.ColumnIndex;
            List <string> columnElements = new List <string>();

            foreach (DataGridViewRow row in tablaPrincipal.Rows)
            {
                if (row.Cells[columnIndex].Value != null)
                {
                    columnElements.Add(row.Cells[columnIndex].Value.ToString());
                }
            }

            StatisticAnalysisForm analysis = new StatisticAnalysisForm(columnElements, tablaPrincipal.Columns[e.ColumnIndex].Name, valores, atributos, columnIndex, this);

            this.Hide();
            analysis.Show();
        }