예제 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(_layoutId);

            _wRoutesMapperImpl.createMapFragment();
            _wRoutesMapperImpl.RefreshMap();

            var btnLt        = FindViewById <Button> (Resource.Id.buttonLt);
            var mapPointText = FindViewById <Button> (_wRoutesMapperImpl.MapPointTextId);
            var btnRt        = FindViewById <Button> (Resource.Id.buttonRt);

            mapPointText.Click += (s, e) => { OnPointSelected(_wRoutesMapperImpl.SelectedPoint); };
            btnLt.Click        += (s, e) => _wRoutesMapperImpl.MoveHighlight(false);
            btnRt.Click        += (s, e) => _wRoutesMapperImpl.MoveHighlight(true);

            _wRoutesMapperImpl.Inited = true;
        }
예제 #2
0
        public override void LoadView()
        {
            base.LoadView();

            _wRoutesMapperImpl.RefreshMap();
            _mapContainer.AddSubview(_wRoutesMapperImpl.MapView);

            _btnSelStart.TouchUpInside += (s, e) => OnPointSelected(_wRoutesMapperImpl.SelectedPoint);
            _btnLeft.TouchUpInside     += (s, e) => _wRoutesMapperImpl.MoveHighlight(false);
            _btnRight.TouchUpInside    += (s, e) => _wRoutesMapperImpl.MoveHighlight(true);

            _wRoutesMapperImpl.Inited = true;
        }