Example #1
0
        public async void GetWellDetail(string wellname)
        {
            WellMapsAPI api = new WellMapsAPI(_credential);

            IsBusy = true;
            WellItem well = await api.GetWellByName(wellname);

            IsBusy = false;

            if (well != null)
            {
                var wellPosition = new Position(well.Latitude, well.Longitude);

                var pin = new Pin
                {
                    Type     = PinType.Place,
                    Position = wellPosition,
                    Label    = well.WellName ?? string.Empty,
                    Address  = well.Description
                };

                Messenger.Default.Send(pin);
            }
        }
Example #2
0
 public TicketPageParam(WellMapsAPI api, TicketItem ticket)
 {
     _api    = api;
     _ticket = ticket;
 }