protected override void OnResume()
        {
            base.OnResume();
            SetContentView(Resource.Layout.AccepteerLayout);
            dataService      = new KlantDataService();
            routeDataService = new RoutesDataService();

            FindViews();
            VulLijst();
            HandleEvents();
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.KlantDetailActivity);

            dataService      = new KlantDataService();
            routeDataService = new RoutesDataService();

            geaccepteerdeKlanten = new List <Klant>();
            klant = new List <Klant>();

            email = Intent.GetStringExtra("email");
            //klantId = Convert.ToInt32(k);

            GetKlant();
            FindViews();
            FillViews();
            // Create your application here
        }
Exemplo n.º 3
0
 private void maakRoute()
 {
     routeDataService = new RoutesDataService();
     routes           = routeDataService.GeefRoutes();
     for (int i = 0; i < routes.Count; i++)
     {
         for (int j = 0; j < routes[i].steps.Length - 1; j++)
         {
             Polyline line = map.AddPolyline(new PolylineOptions()
                                             .Add(new LatLng(routes[i].steps[j].latitude, routes[i].steps[j].longitude), new LatLng(routes[i].steps[j + 1].latitude, routes[i].steps[j + 1].longitude)));
             if (i % 2 == 0)
             {
                 line.Color = Color.Red;
             }
             else
             {
                 line.Color = Color.Blue;
             }
         }
     }
 }