예제 #1
0
        //
        private void ShowNewForm(object sender, EventArgs e)
        {
            String formName = ((ToolStripMenuItem)sender).Text;

            switch (formName)
            {
            case "&Patalla":
            {
                Form childForm = new FrmPantalla();
                childForm.Show();
                break;
            }

            case "&Registro":
            {
                Form childForm = new FrmRegisto();
                childForm.Show();
                break;
            }

            case "&Regresar ticket cola":
            {
                Form childForm = new FrmTicketNoSePresento();
                childForm.Show();
                break;
            }

            case "&Llamar Cliente":
            {
                Form childForm = new FrmLlamarCliente();
                childForm.MdiParent = this;
                childForm.Show();
                break;
            }

            case "&Cajero":
            {
                Form childForm = new FrmCajero();
                childForm.MdiParent = this;
                childForm.Show();
                break;
            }

            case "&About":
            {
                Form childForm = new FrmAboutBox();
                childForm.ShowDialog();
                break;
            }
            //

            default:
                break;
            }

            //Form childForm = new Form();
            //childForm.MdiParent = this;
            //childForm.Text = "Window " + childFormNumber++;
            //childForm.Show();
        }
예제 #2
0
        private void cajeroToolStripButton_Click(object sender, EventArgs e)
        {
            Form childForm = new FrmCajero();

            childForm.MdiParent = this;
            childForm.Show();
        }