コード例 #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);
        }
コード例 #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);
        }
コード例 #3
0
 public ProgressNotificationController(IProgressNotificationService progressNotificationService)
 {
     ProgressNotificationService = progressNotificationService;
 }
コード例 #4
0
 public ChallengeNotificationFilterImpl(IProgressNotificationService notifier)
 {
     _notifier = notifier;
 }
コード例 #5
0
 public static IProgressNotificationService Resolve(IProgressNotificationService service)
 {
     return(service ?? new ConsoleProgressNotificationService());
 }