SuperMap.WindowsPhone.Mapping.TiledLayer._queueSystem_ImageCompleted C# (CSharp) Method

_queueSystem_ImageCompleted() private method

private _queueSystem_ImageCompleted ( object sender, Tile e ) : void
sender object
e Tile
return void
        void _queueSystem_ImageCompleted(object sender, Tile e)
        {
            if (this.IsInitialized && e != null && this.uniqueLayerId == e.LayerID)
            {
                string key = e.TileKey;
                Action<object> action = (obj) =>
                {
                    if (!_inContainer.ContainsKey(key) && needShowTiles.Contains(e))
                    {
                        Image img = DataToImage(e);
                        Container.Children.Add(img);
                        _inContainer.Add(key, e);
                    }
                    int progress = GetProgress();
                    OnProgress(progress);
                    if (progress == 100)
                    {
                        Complated();
                    }
                };
                SendOrPostCallback callback = new SendOrPostCallback(action);
                _sync.Post(callback, null);
            }
        }