예제 #1
0
 public AlbumListItem(PictureAlbum album, SelectiveSyncViewModel parent)
 {
     AlbumName = album.Name;
     Album = album;
     Parent = parent;
     Thumb = new BitmapImage();
     Thumb.SetSource(album.Pictures.First().GetThumbnail());
 }
예제 #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);
        }