コード例 #1
0
ファイル: Inicio.cs プロジェクト: FJSOTO/Tienda-Plaza
        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;
            }
        }
コード例 #2
0
ファイル: Inicio.cs プロジェクト: FJSOTO/Tienda-Plaza
 private void emiteBoletasF1ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.menuStrip1.Enabled = false;
     EmiteBoleta frmhijo = new EmiteBoleta();
     frmhijo.FormClosing += new FormClosingEventHandler(form_FormClosing);
     frmhijo.Show();  
 }