Example #1
0
        private void btnCartelera_Click(object sender, EventArgs e)
        {
            cartelera cartelera = new cartelera();
            cartelera.lblsucursal.Text = cmbCine.SelectedValue.ToString();

            cartelera.Show();
            this.WindowState = FormWindowState.Minimized;
        }
Example #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.Close();
            //se localiza el formulario buscandolo entre los forms abiertos
            Form frm = Application.OpenForms.Cast<Form>().FirstOrDefault(x => x is cartelera);

            if (frm != null)
            {
                //si la instancia existe la pongo en primer plano
                frm.BringToFront();
                frm.WindowState = FormWindowState.Normal;
                return;
            }

            //sino existe la instancia se crea una nueva
            frm = new cartelera();
            frm.Show();
        }
Example #3
0
 private void btnCartelera_Click(object sender, EventArgs e)
 {
     cartelera cartelera = new cartelera();
     cartelera.Show();
     this.WindowState = FormWindowState.Minimized;
 }