Ejemplo n.º 1
0
        private void grid_pais_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                int id = Int16.Parse(grid_pais.SelectedRows[0].Cells[0].Value.ToString());

                Pais_Controle controle = new Pais_Controle();
                Pais_Model    pais     = controle.BuscarPorPaisID(id);

                CarregarFormDePais(pais);
            }
            catch (Exception ex)
            {
                MessageBox.Show("ERRO: " + ex.Message);
            }
        }