Ejemplo n.º 1
0
        public MainViewModel(IAddressRepository addressRepository, IProgressNotificationService progressNotificationService)
        {
            this.addressRepository = addressRepository;
            Addresses = addressRepository.GetAddresses().Select(a => new AddressViewModel(a)).ToList();

            this.progressNotificationService = progressNotificationService;

            LocateMe = new RelayCommand(SendMyLocationMessage);
            Nearest = new RelayCommand(SendNearestLocationMessage);
            Directions = new RelayCommand(SendNearestDirectionsMessage);
        }
Ejemplo n.º 2
0
        public MainViewModel(IAddressRepository addressRepository, IProgressNotificationService progressNotificationService)
        {
            this.addressRepository = addressRepository;
            Addresses = addressRepository.GetAddresses().Select(a => new AddressViewModel(a)).ToList();

            this.progressNotificationService = progressNotificationService;

            LocateMe   = new RelayCommand(SendMyLocationMessage);
            Nearest    = new RelayCommand(SendNearestLocationMessage);
            Directions = new RelayCommand(SendNearestDirectionsMessage);
        }
Ejemplo n.º 3
0
 public ProgressNotificationController(IProgressNotificationService progressNotificationService)
 {
     ProgressNotificationService = progressNotificationService;
 }
Ejemplo n.º 4
0
 public ChallengeNotificationFilterImpl(IProgressNotificationService notifier)
 {
     _notifier = notifier;
 }
 public static IProgressNotificationService Resolve(IProgressNotificationService service)
 {
     return(service ?? new ConsoleProgressNotificationService());
 }