Example #1
0
        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();
                }

            }
        }
Example #2
0
        public void FuncKeysModule(Keys value)
        {
            //Check what function key is in a pressed state, and then perform the corresponding action.
            switch (value)
            {
                case Keys.F1:
                    this.menuStrip1.Enabled = false;
                    EmiteBoleta frmhijo = new EmiteBoleta();
                    frmhijo.FormClosing += new FormClosingEventHandler(form_FormClosing);
                    frmhijo.Show();  
                    break;

                case Keys.F7:
                     this.menuStrip1.Enabled = false;
                     DProductos frmhijo7 = new DProductos();
                     frmhijo7.FormClosing += new FormClosingEventHandler(form_FormClosing);
                     frmhijo7.Show();   
                    break;
            }
        }
Example #3
0
 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();
     }
 
 }
Example #4
0
        private void productosF7ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //this.menuStrip1.Enabled = false;
            DProductos frmhijo = new DProductos();
            //frmhijo.FormClosing += new FormClosingEventHandler(form_FormClosing);
            frmhijo.Show();                  

        }