コード例 #1
0
        public AlbumsViewModel(IMediaUploadService uploadService, IAlbumContext albumContext)
        {
            if (albumContext == null)
                throw new ArgumentNullException("albumContext", "albumContext is null.");

            _controller = uploadService;
            CreateAlbumCommand = new CreateAlbumCommand(uploadService);
            LoadAlbumsCommand = new LoadAlbumsCommand(uploadService);
            _albumContext = albumContext;
        }
コード例 #2
0
        public UploadPhotosViewModel(IMediaUploadService uploadService, IAlbumContext albumContext)
        {
            if (uploadService == null)
                throw new ArgumentNullException("uploadService", "picasaController is null.");
            if (albumContext == null)
                throw new ArgumentNullException("albumContext", "albumContext is null.");

            UploadService = uploadService;
            _albumContext = albumContext;
            Files = new List<string>();
            UploadCommand = new UploadPhotoCommand(uploadService);
        }
コード例 #3
0
ファイル: AlbumRepository.cs プロジェクト: ondfisk/BDSA2016
 public AlbumRepository(IAlbumContext context)
 {
     _context = context;
 }
コード例 #4
0
 public PhotoUploadDialog(IAlbumContext context, PhotoUploadViewModel viewModel)
 {
 }
コード例 #5
0
 public EntityFrameworkArtistRepository(IAlbumContext context)
 {
     _context = context;
 }