Beispiel #1
0
        private void dataListado_DoubleClick(object sender, EventArgs e)
        {
            frmIngreso form = frmIngreso.GetInstancia();
            string     par1, par2;

            par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["idarticulo"].Value);
            par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["nombre"].Value);
            form.setArticulo(par1, par2);
            this.Hide();
        }
Beispiel #2
0
        private void DtgvListado_DoubleClick(object sender, EventArgs e)
        {
            frmIngreso form = frmIngreso.GetInstancia();//verificamos que la instancia este
            string     parametro1, parametro2;

            parametro1 = Convert.ToString(this.dtgvListado.CurrentRow.Cells["idarticulo"].Value);
            parametro2 = Convert.ToString(this.dtgvListado.CurrentRow.Cells["nombre"].Value);
            form.setArticulo(parametro1, parametro2);//el metodo setArticulo esta esperando dos parametros
            this.Hide();
        }