示例#1
0
        private void AgregarProductoFactura()
        {
            int           i = dataGridView1.CurrentRow.Index;
            string        codigoProducto = dataGridView1.Rows[i].Cells[0].Value.ToString();
            TbProductosBE oTbProductosBE = (from item in Lista.ToArray()
                                            where item.CodProducto == codigoProducto
                                            select item).Single();

            onProductoSeleccionado(new object(), oTbProductosBE);
            this.Close();
        }
示例#2
0
文件: Form2.cs 项目: janeth182/ISIL
 private void ListarProductos()
 {
     dataGridView1.DataSource = TbProductosBE.SelecctAll();
 }
示例#3
0
文件: Form2.cs 项目: janeth182/ISIL
 private void Form2_Load(object sender, EventArgs e)
 {
     ListarProductos();
     Producto = TbProductosBE.SelecctAll();
 }
示例#4
0
 private void FrmProducto_Load(object sender, EventArgs e)
 {
     Lista = TbProductosBE.SelecctAll();
     ProductosbindingSource1.DataSource = Lista;
     this.dataGridView1.SelectionMode   = DataGridViewSelectionMode.FullRowSelect;
 }
示例#5
0
 private void oFrmProducto_OnProductoSeleccionado(object sender, TbProductosBE e)
 {
     txtproducto.Text = e.Descripcion;
     txtprecio.Text   = e.Precio.ToString();
     TbProductosBEtmp = e;
 }