Beispiel #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmManArticulos formulario = new frmManArticulos();

            formulario.StartPosition = FormStartPosition.CenterScreen;
            formulario.recogerDatos(0);
            formulario.ShowDialog();
            Buscar();
        }
Beispiel #2
0
 private void grdArticulos_DoubleClick(object sender, EventArgs e)
 {
     if (this.grdArticulos.RowCount > 0)
     {
         frmManArticulos formulario = new frmManArticulos();
         formulario.recogerDatos(Convert.ToInt32(this.grdArticulos.CurrentRow.Cells[0].Value));
         formulario.StartPosition = FormStartPosition.CenterScreen;
         formulario.ShowDialog();
         Buscar();
     }
 }