private void panel1_Click(object sender, EventArgs e) { Pregled_filma aaa = new Pregled_filma(); aaa.Show(); Image myimage = new Bitmap(@"movie-theater-auditorium.jpg"); aaa.BackgroundImage = myimage; }
private void listView1_SelectedIndexChanged(object sender, EventArgs e) { if (listView1.SelectedIndices.Count <= 0) { return; } int intselectedindex = listView1.SelectedIndices[0]; if (intselectedindex >= 0) { String textic = listView1.Items[intselectedindex].Text; Pregled_filma P = new Pregled_filma(); P.Show(); MessageBox.Show("Prije izlaza obavezno pauzirajte video!!!"); StreamReader sr = new StreamReader(@"FILMOVI.txt"); string linija; bool kraj = false; while (!kraj) { linija = sr.ReadLine(); if (linija == null) { kraj = true; } else { string[] razlomljenalinija = linija.Split('|'); { if (razlomljenalinija[0] == textic) { string[] r = razlomljenalinija[0].Split('.'); { //PROFESORE,OVDE SE TRIBA UCITAT URL YOUTUBE VIDEA I URL SLIKE.DOMA MI TO RADI.OVDEN U UCIONICI NIJE P.label1.Text = r[0]; P.label1.AutoSize = false; P.lblime.Text = label10.Text; P.lblime.ForeColor = System.Drawing.Color.Transparent; P.lblime.BackColor = System.Drawing.Color.Transparent; P.lblprezime.Text = label11.Text; P.lblprezime.ForeColor = System.Drawing.Color.Transparent; P.lblprezime.BackColor = System.Drawing.Color.Transparent; P.label1.TextAlign = ContentAlignment.MiddleCenter; P.axShockwaveFlash1.Movie = razlomljenalinija[5]; P.Poruka = razlomljenalinija[4]; P.label6.Text = label6.Text; P.label6.ForeColor = System.Drawing.Color.Transparent; P.label6.BackColor = System.Drawing.Color.Transparent; P.label7.Text = label7.Text; P.label7.ForeColor = System.Drawing.Color.Transparent; P.label7.BackColor = System.Drawing.Color.Transparent; P.label3.Text = label9.Text.ToString(); P.pictureBox1.ImageLocation = razlomljenalinija[6]; P.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; } this.Hide(); } } } } } }