Beispiel #1
0
 private void pb2_Click(object sender, EventArgs e)
 {
     frmInformacion info = new frmInformacion();
     info.pictureBox1.Image = Properties.Resources.FF2;
     info.pictureBox1.Refresh();
     info.Show();
     this.WindowState = FormWindowState.Minimized;
 }
Beispiel #2
0
 private void pb3_Click(object sender, EventArgs e)
 {
     frmInformacion info = new frmInformacion();
     info.pictureBox1.Image = Properties.Resources.In_to_the_Woods_En_el_Bosqu;
     info.pictureBox1.Refresh();
     info.Show();
     this.WindowState = FormWindowState.Minimized;
 }
Beispiel #3
0
 private void pb6_Click(object sender, EventArgs e)
 {
     frmInformacion info = new frmInformacion();
     info.pictureBox1.Image = Properties.Resources.peliculas_2015_rapido_furioso_4;
     info.pictureBox1.Refresh();
     info.Show();
     this.WindowState = FormWindowState.Minimized;
 }
Beispiel #4
0
 private void pb4_Click(object sender, EventArgs e)
 {
     frmInformacion info = new frmInformacion();
     info.pictureBox1.Image = Properties.Resources.Ombis_Alien_Invasion__2015_;
     info.pictureBox1.Refresh();
     info.Show();
     this.WindowState = FormWindowState.Minimized;
 }
Beispiel #5
0
 protected void PB_Click(object sender, EventArgs e, string pelicula)
 {
     frmInformacion info = new frmInformacion();
     //se asigna la variable pelicula hacia la variable My id Movie
     claseEmp.MyIdMovie = pelicula;
     // se muestra el formulario informacion
     info.Show();
 }
Beispiel #6
0
        private void atrasToolStripMenuItem_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 frmInformacion);

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

            //sino existe la instancia se crea una nueva
            frm = new frmInformacion();
            frm.Show();
        }
Beispiel #7
0
        private void pb8_Click(object sender, EventArgs e)
        {
            frmInformacion info = new frmInformacion();

            info.Show();
            this.WindowState = FormWindowState.Minimized;
        }