コード例 #1
0
ファイル: AddRide.xaml.cs プロジェクト: omardacca/Altaaref
        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;
        }
コード例 #2
0
 public AddRidePage(int?voznjaId)
 {
     InitializeComponent();
     BindingContext = model = new AddRideViewModel();
     VoznjaID       = voznjaId;
 }