Ejemplo n.º 1
0
        //Modificar un equipo.
        private void button1_Click(object sender, EventArgs e)
        {
           
            if (dgvEquipos.RowCount > 0)
            {
                //string[] datosEq = new string[dgvEquipos.CurrentRow.Cells.Count];

               
                ////Se obtienen los datos del equipo que se desea modificar.
                //for (int i = 0; i < datosEq.Length; i++)
                //{
                //    datosEq[i] = dgvEquipos.Rows[dgvEquipos.CurrentRow.Index].Cells[i].Value.ToString();
                //   // MessageBox.Show("" + dgvEquipos.Rows[dgvEquipos.CurrentRow.Index].Cells[i].Value.ToString());
                //}
                AgregarEquipo ae = new AgregarEquipo(this, dgvEquipos.Rows[dgvEquipos.CurrentRow.Index].Cells[0].Value.ToString(),sesion);
                //ae.ShowDialog(this);
                ae.ShowDialog();
            }
        }
Ejemplo n.º 2
0
 //Agregar un equipo nuevo al inventario.
 private void btAgregar_Click(object sender, EventArgs e)
 {
     AgregarEquipo ae = new AgregarEquipo( this,sesion);
     ae.ShowDialog(this);
     
 }