Exemplo n.º 1
0
 public AlbumListItem(PictureAlbum album, SelectiveSyncViewModel parent)
 {
     AlbumName = album.Name;
     Album = album;
     Parent = parent;
     Thumb = new BitmapImage();
     Thumb.SetSource(album.Pictures.First().GetThumbnail());
 }
Exemplo n.º 2
0
        public ImageListItem(Picture picture, SelectiveSyncViewModel parent)
        {
            Picture = picture;
            Parent = parent;
            Thumb = new BitmapImage();
            BackgroundWorker imageLoader = new BackgroundWorker();
            imageLoader.DoWork += new DoWorkEventHandler(imageLoader_DoWork);
            imageLoader.RunWorkerAsync();

            SelectCommand = new DelegateCommand(SelectImage);
        }