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