public AddRide() { InitializeComponent(); BindingContext = new AddRideViewModel(new PageService()); search_from.PlacesRetrieved += FromSearchPlacesRetrieved; search_from.TextChanged += Search_Bar_TextChanged; search_from.MinimumSearchText = 2; search_to.PlacesRetrieved += ToSearchPlacesRetrieved; search_to.TextChanged += Search_Bar_TextChanged; search_to.MinimumSearchText = 2; }
public AddRidePage(int?voznjaId) { InitializeComponent(); BindingContext = model = new AddRideViewModel(); VoznjaID = voznjaId; }