コード例 #1
0
ファイル: csDataServerPlugin.cs プロジェクト: TNOCS/csTouch
        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();
            });
        }
コード例 #2
0
 private void Dsb_Subscribed(object sender, ServiceSubscribeEventArgs e) {
     if (inProgress.Contains(e.Service.Id)) inProgress.Remove(e.Service.Id);
 }