Ejemplo n.º 1
0
        private void Picture_Click(object sender, EventArgs e)
        {
            double     Sheight = SystemParameters.FullPrimaryScreenHeight;
            PictureBox pb      = (PictureBox)sender;

            System.Drawing.Image img = pb.Image;
            pf        = new PictureForm(img);
            pf.Height = Sheight < img.Height ? (int)Sheight + 15 : img.Height;
            pf.Width  = img.Width + 20;

            pf.Show();
        }
Ejemplo n.º 2
0
 private void Picture_Click(object sender, EventArgs e)
 {
     if (sender is Label2)
     {
         Label2    lab   = (Label2)sender;
         string    video = lab.GetUrl();
         VideoForm vf    = new VideoForm(video);
         vf.Show();
     }
     else
     {
         // int max = Screen.PrimaryScreen.WorkingArea.Height - 25;
         PictureBox           pb  = (PictureBox)sender;
         System.Drawing.Image img = pb.Image;
         PictureForm          pf  = new PictureForm(img);
         pf.Height = Sheight < img.Height ? (int)Sheight + 15 : img.Height;
         pf.Width  = img.Width + 20;
         pf.Show();
     }
 }