private void Guardarbutton_Click(object sender, EventArgs e) { bool paso = false; TipoDeTelefono t; if (!ValidarGuardar()) { return; } t = LlenarClase(); if (IDnumericUpDown.Value == 0) { paso = TipoTPBLL.Guardar(t); } if (paso) { MessageBox.Show("Guardado ", "exito", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("No Guardado", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void LlenarCombox() { TipocomboBox.DataSource = TipoTPBLL.GetList(x => true); // TipocomboBox.ValueMember = "T"; }