示例#1
0
        public MapViewModel()
        {
            StartJourneyCommand = new StartJourneyCommand(this);
            ChosenLocation      = new LocalAddress();
            DistanceBorderColor = TimeBorderColor = Color.Black;

            HandleReceivedMessages(); //Handle service messages

            notificationManager = DependencyService.Get <INotificationManager>();

            //notificationManager.NotificationReceived += (sender, eventArgs) =>
            //{
            //    var evtData = (NotificationEventArgs)eventArgs;
            //    ShowNotification(evtData.Title, evtData.Message);
            //};
        }
示例#2
0
 public MapViewModel(LocalAddress chosenLocation)
 {
     ChosenLocation      = chosenLocation;
     StartJourneyCommand = new StartJourneyCommand(this);
 }