Esempio n. 1
0
 private void bBorrar2_Click(object sender, EventArgs e)
 {
     RelacionesTableAdapters.TornosTableAdapter t = new RelacionesTableAdapters.TornosTableAdapter();
     t.BorrarTornos(Convert.ToInt32(tbBusqueda.Text));
     botones();
     this.tornosTableAdapter.Fill(this.relaciones.Tornos);
 }
Esempio n. 2
0
 private void bAgregar2_Click(object sender, EventArgs e)
 {
     RelacionesTableAdapters.TornosTableAdapter t = new RelacionesTableAdapters.TornosTableAdapter();
     t.AgregarTornos(Convert.ToInt32(idTextBox.Text), npeTextBox.Text, npsTextBox.Text, estacionTextBox.Text);
     botones();
     this.tornosTableAdapter.Fill(this.relaciones.Tornos);
 }
Esempio n. 3
0
        private void bBuscar_Click(object sender, EventArgs e)
        {
            tbBusqueda.Visible    = false;
            bBuscar.Visible       = false;
            bBuscarNombre.Visible = true;
            bContar.Visible       = true;
            bBorrar.Visible       = true;
            bAgregar.Visible      = true;
            bModificar.Visible    = true;
            if (lNombre.Visible == true)
            {
                DataTable tabla = new DataTable();
                RelacionesTableAdapters.TornosTableAdapter t = new RelacionesTableAdapters.TornosTableAdapter();
                String b = tbBusqueda.Text;
                tabla = t.BuscarEstacion(b);
                tornosDataGridView.DataSource = tabla;
            }

            lEstacion.Visible = false;
            lNombre.Visible   = false;
            lBorrar.Visible   = false;
            botones();
        }