private void spIdMarca_EditValueChanged(object sender, EventArgs e) { if (spIdMarca.Value > 0) { Brand bran = new Brand(); BrandController branCont = new BrandController(); bran = branCont.getBrandXId((int)spIdMarca.Value); txtName.Text = "" + bran.NameBrand; } }