コード例 #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                objTeamBE.NomEquipo  = txtTeamName.Text.Trim();
                objTeamBE.PaisEquipo = txtCountry.Text.Trim();

                if (objTeamBL.UpdateTeam(objTeamBE) == true)
                {
                    this.Close();
                }
                else
                {
                    throw new Exception("Error:");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Se ha producido el error: " + ex.Message);
            }
        }