Ejemplo n.º 1
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            foreach (DataGridViewRow row in dataListado.Rows)
            {
                if (Convert.ToBoolean(row.Cells[0].Value))
                {
                    FormEditarEmpleado form = FormEditarEmpleado.GetInstancia();
                    string             par1, par2, par3, par4, par5, par6, par7, par8, par9, par10, par11, par12, par13, par14, par15;

                    par1  = Convert.ToString(row.Cells[1].Value);
                    par2  = Convert.ToString(row.Cells[2].Value);
                    par3  = Convert.ToString(row.Cells[3].Value);
                    par4  = Convert.ToString(row.Cells[4].Value);
                    par5  = Convert.ToString(row.Cells[5].Value);
                    par6  = Convert.ToString(row.Cells[6].Value);
                    par7  = Convert.ToString(row.Cells[7].Value);
                    par8  = Convert.ToString(row.Cells[8].Value);
                    par9  = Convert.ToString(row.Cells[9].Value);
                    par10 = Convert.ToString(row.Cells[10].Value);
                    par11 = Convert.ToString(row.Cells[11].Value);
                    par12 = Convert.ToString(row.Cells[12].Value);
                    par13 = Convert.ToString(row.Cells[13].Value);
                    par14 = Convert.ToString(row.Cells[14].Value);
                    par15 = Convert.ToString(row.Cells[15].Value);
                    form.SetEmpleado(par1, par2, par3, par4, par5, par6, par7, par8, par9, par10, par11, par12, par13, par14, par15);
                    form.ShowDialog();
                }
            }
        }
 public static FormEditarEmpleado GetInstancia()
 {
     if (_Instancia == null)
     {
         _Instancia = new FormEditarEmpleado();
     }
     return(_Instancia);
 }