private void listBox2_DoubleClick(object sender, EventArgs e) { if (detalleproducto == "Yes"){ DProductos dprod = new DProductos(); dprod.Codigo = label6.Text; dprod.Show(); detalleproducto = ""; this.Hide(); } if (stockmanual == "Yes"){ StockManual dprod = new StockManual(); dprod.micodigo = label6.Text; dprod.Show(); stockmanual = ""; this.Hide(); } if (AjusteMInvent == "Yes") { AjusteMInventario dprod = new AjusteMInventario(); dprod.codigoI = label6.Text; dprod.Show(); AjusteMInvent = ""; this.Hide(); } }
private void listBox2_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == Convert.ToChar(Keys.Enter)) { if (detalleproducto == "Yes") { DProductos dprod = new DProductos(); dprod.Codigo = label6.Text; dprod.Show(); detalleproducto = ""; this.Hide(); } if (stockmanual == "Yes") { StockManual dprod = new StockManual(); dprod.micodigo = label6.Text; dprod.Show(); stockmanual = ""; this.Hide(); } if (AjusteMInvent == "Yes") { AjusteMInventario dprod = new AjusteMInventario(); dprod.codigoI = label6.Text; dprod.Visible = true; AjusteMInvent = ""; this.Hide(); } } }
private void ajusteManualInventarioToolStripMenuItem_Click(object sender, EventArgs e) { AjusteMInventario ajuste = new AjusteMInventario(); ajuste.Show(); }