コード例 #1
0
 public ImageSelectionViewModel(IFileSystemService fileSystemService,
                                IBusyProvider busyProvider,
                                string path,
                                bool horizontalAlignement)
     : base(busyProvider, new Image {
     Url = path
 })
 {
     _fileSystemService = fileSystemService;
     _path = path;
     HorizontalAlignement = horizontalAlignement;
     Download             = new ChooseImageFileViewModel(fileSystemService, this, busyProvider, path);
 }
コード例 #2
0
 public DownloadCommandTests()
 {
     _chooseImageViewModel = Substitute.For<IChooseImageFileViewModel>();
     _command = new DownloadCommand(_chooseImageViewModel);
 }
コード例 #3
0
 public DownloadCommand(IChooseImageFileViewModel chooseImageViewModel)
 {
     _chooseImageViewModel = chooseImageViewModel;
     _chooseImageViewModel.PropertyChanged += ChooseImageViewModelPropertyChanged;
 }
コード例 #4
0
 public LoadFileCommandTests()
 {
     _chooseImageViewModel = Substitute.For <IChooseImageFileViewModel>();
     _command = new LoadFileCommand(_chooseImageViewModel);
 }
コード例 #5
0
 public LoadFileCommand(IChooseImageFileViewModel chooseImageViewModel)
 {
     _chooseImageViewModel = chooseImageViewModel;
     _chooseImageViewModel.PropertyChanged += ChooseImageViewModelPropertyChanged;
 }