private void ButEliminarEqui_Click(object sender, EventArgs e) { Equipos Equi = new Equipos(); if (tbxEliminar.Text.ToString() != string.Empty) { if (Equi.CompararID(tbxEliminar.Text) == true) { DataSet dsAgregar; Gestion g = new Gestion(); dsAgregar = new DataSet(); SqlCommand Comando = new SqlCommand(); g.ArmarParametrosEquipoEliminar(ref Comando, tbxEliminar.Text); AccesoDatos ad = new AccesoDatos(); ad.EjecutarProcedimientoAlmacenado(Comando, "spEliminarEquipo"); MessageBox.Show("Equipo Eliminado"); } else { MessageBox.Show("No existe ese ID."); } } else { MessageBox.Show("Debe incertar un Id del Equipo a eliminar"); } }
private void ButBuscarDatosID_Click(object sender, EventArgs e) { Equipos Equi = new Equipos(); if (tbxID.Text.ToString() != string.Empty) { if (Equi.CompararID(tbxID.Text) == true) { AsignarTextBoxes(tbxID.Text); } else { MessageBox.Show("No existe ese ID."); } } else { MessageBox.Show("Debe incertar un Id de corredor a Modificar"); } }