예제 #1
0
 public MainViewModel(IFlickrService flickrService, Resources resources, INavigationService navigationService, IRequestMessageResolver messageResolver)
 {
     _flickrService = flickrService;
     _resources = resources;
     _navigationService = navigationService;
     _messageResolver = messageResolver;
     //Initialize Commands
     LoadInitialPhotosCommand = new AsyncExtendedCommand(LoadInitialPhotosAsync);
     PhotoClickedCommand = new ExtendedCommand<Photo>(PhotoClicked);
 }
예제 #2
0
 public GalleryViewModel(INavigationService navigationService)
 {
     _navigationService = navigationService;
     //Initialize Commands
     ShowMapCommand = new ExtendedCommand<Photo>(ShowMap);
 }