Beispiel #1
0
        private void DsbUnSubscribed(object sender, ServiceSubscribeEventArgs e)
        {
            Execute.OnUIThread(() =>
            {
                var service = e.Service as PoiService;
                if (service != null)
                {
                    service.TimeLine.Clear();
                }
                if (!e.Service.StaticService) return;
                var layer = StaticLayers.FirstOrDefault(k => k.Service.Id == e.Service.Id);
                e.Service.Reset();

                if (layer != null)
                    layer.End();
            });
        }
 private void Dsb_Subscribed(object sender, ServiceSubscribeEventArgs e) {
     if (inProgress.Contains(e.Service.Id)) inProgress.Remove(e.Service.Id);
 }