public ViaggioSelectionPageViewModel(INavigationService navigationService, IEventAggregator eventAggregator) { this.navigationService = navigationService; this.eventAggregator = eventAggregator; ViaggiDisponibili = new ObservableCollection <Viaggio>(); dbMan = new Database.DBManager(); }
public PasseggeroStatusChanger(Popup containerPopup, Spostamento partecipante, Geoposition location) { this.InitializeComponent(); this.containerPopup = containerPopup; this.partecipante = partecipante; this.location = location; dbMan = new DBManager(); }
public LoginPageViewModel(INavigationService navigationService) { this.navigationService = navigationService; dbMan = new Database.DBManager(); ShowLoading = false; LoadingMessage = ""; Username = "******"; Password = "******"; }
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); }