public void InsertPhotosToImageListView()
 {
     foreach (Photo photo in LogggedInUser.PhotosCollection.ListOfPhotos)
     {
         var imageListViewItem = new Manina.Windows.Forms.ImageListViewItem();
         imageListViewItem.FileName = photo.photoId + ".jpg"; // we assume that the file has been downloaded, with that name.
         imageListViewItem.Tag      = photo.photoId;
         imageListViewItem.Text     = photo.photoTag;
         imageListView1.Items.Add(imageListViewItem);
     }
 }
示例#2
0
 public FullscreenImg(string imgPAth, Manina.Windows.Forms.ImageListViewItem selectedITem)
 {
     InitializeComponent();
     FormBorderStyle         = FormBorderStyle.None;
     WindowState             = FormWindowState.Maximized;
     pictureBox1.Dock        = DockStyle.Fill;
     pictureBox1.SizeMode    = PictureBoxSizeMode.Zoom;
     pictureBox1.Image       = Image = Image.FromFile(imgPAth);
     pictureBox1.MouseWheel += PictureBox1_MouseWheel;
     pictureBox1.MouseMove  += PictureBox1_MouseMove;
 }