示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            List <string> ciudadano = new List <string>();
            Ciudadano     window    = new Ciudadano(ciudadano);

            window.Show();
        }
示例#2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            List <string> ciudadano = new List <string>();

            //string index = "1";
            try
            {
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[8].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[9].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[10].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[11].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[12].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[13].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[14].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[15].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[16].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[17].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[18].Value.ToString());
                ciudadano.Add(dataGridView1.Rows[e.RowIndex].Cells[19].Value.ToString());
            }
            catch (Exception)
            {
            }
            Ciudadano window = new Ciudadano(ciudadano);

            window.Show();
        }