Beispiel #1
0
        private void ApagarPonto_Click(object sender, EventArgs e)
        {
            PontosClass Ponto   = new PontosClass();
            string      IdPonto = cDescricao.Split('|')[0];
            string      cRet    = "";

            cRet  = Ponto.DeletaPonto(IdPonto);
            lSaiu = true;
            this.Dismiss();
        }
Beispiel #2
0
        public void OnMapReady(GoogleMap googleMap)
        {
            PontosClass Ponto = new PontosClass();

            googleMap.UiSettings.ZoomControlsEnabled = true;
            googleMap.UiSettings.CompassEnabled      = true;
            googleMap.MoveCamera(CameraUpdateFactory.ZoomTo(googleMap.MaxZoomLevel));
            googleMap.MoveCamera(CameraUpdateFactory.NewLatLng(new LatLng(-26.3193264, -48.8553668)));
            googleMap.MarkerClick += GoogleMap_MarkerClick;
            Ponto.CarregaPontosMapa(googleMap);
        }
Beispiel #3
0
        public void OnMapReady(GoogleMap googleMap)
        {
            PontosClass Ponto = new PontosClass();

            googleMap.UiSettings.ZoomControlsEnabled = true;
            googleMap.UiSettings.CompassEnabled      = true;
            googleMap.MapClick    += GoogleMap_MapClick;
            googleMap.MarkerClick += GoogleMap_MarkerClick;

            Ponto.CarregaPontosMapa(googleMap);
        }
Beispiel #4
0
        private void Btn_Salvar_Click(object sender, EventArgs e)
        {
            FragmentTransaction transaction = FragmentManager.BeginTransaction();
            Bundle      Args      = new Bundle();
            PontosClass Ponto     = new PontosClass();
            PopUpPonto  InfoPopUp = new PopUpPonto();

            Args.PutDouble("Longitude", _NovoPonto.Position.Longitude);
            Args.PutDouble("Latitude", _NovoPonto.Position.Latitude);
            InfoPopUp.Arguments = Args;
            InfoPopUp.Show(transaction, "");
            Btn_AddPonto.Enabled = false;
        }
Beispiel #5
0
        private void Btn_SalvarPonto_Click(object sender, EventArgs e)
        {
            EditText    Descric = view.FindViewById <EditText>(Resource.Id.DescricaoPonto);
            PontosClass Ponto = new PontosClass();
            double      Lat, Log;

            Lat = Arguments.GetDouble("Latitude");
            Log = Arguments.GetDouble("Longitude");
            if (Descric.Text == "")
            {
                Toast.MakeText(view.Context, "Descrição Invalida", ToastLength.Long);
            }
            else
            {
                if (Ponto.InsertPonto(Descric.Text, Lat, Log))
                {
                    this.Dismiss();
                    AddPonto = true;
                }
            }
        }