예제 #1
0
 public ViaggioSelectionPageViewModel(INavigationService navigationService, IEventAggregator eventAggregator)
 {
     this.navigationService = navigationService;
     this.eventAggregator   = eventAggregator;
     ViaggiDisponibili      = new ObservableCollection <Viaggio>();
     dbMan = new Database.DBManager();
 }
예제 #2
0
 public PasseggeroStatusChanger(Popup containerPopup, Spostamento partecipante, Geoposition location)
 {
     this.InitializeComponent();
     this.containerPopup = containerPopup;
     this.partecipante   = partecipante;
     this.location       = location;
     dbMan = new DBManager();
 }
예제 #3
0
 public LoginPageViewModel(INavigationService navigationService)
 {
     this.navigationService = navigationService;
     dbMan          = new Database.DBManager();
     ShowLoading    = false;
     LoadingMessage = "";
     Username       = "******";
     Password       = "******";
 }
예제 #4
0
 public TravelingPageViewModel(INavigationService navigationService, IEventAggregator eventAggregator)
 {
     this.navigationService = navigationService;
     this.eventAggregator   = eventAggregator;
     geoLoc             = new Geolocator();
     bufferTimer        = new DispatcherTimer();
     dbMan              = new Database.DBManager();
     currentPosition    = null;
     ListaPasseggeri    = new ObservableCollection <Spostamento>();
     bufferPosizioni    = new List <Posizione>();
     bufferPartecipanti = new List <Partecipante>();
     posAPI             = new PosizioneAPI(Settings.Instance.AccessToken);
     parAPI             = new PartecipantiAPI(Settings.Instance.AccessToken);
 }