Esempio n. 1
0
 public void AddAnnotation(CoalAnnotation anno)
 {
     lock (annotations)
     {
         annotations.Add(anno);
     }
 }
Esempio n. 2
0
        void Tapper(UITapGestureRecognizer press)
        {
            StockpileInfo info          = new StockpileInfo();
            var           pixelLocation = press.LocationInView(MapView);
            var           geoLocation   = MapView.ConvertPoint(pixelLocation, MapView);
            var           stockpile     = info.getStockPileNumber();
            var           company       = info.getCompany();

            if ((!string.IsNullOrEmpty(stockpile)) && (!string.IsNullOrEmpty(company)))
            {
                CoalAnnotation coalAn = new CoalAnnotation(stockpile, company, geoLocation);
                coalAn.IncrementId();
                storage.AddAnnotation(coalAn);

                MapView.AddAnnotation(coalAn);
                info.Clear();
            }
        }