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);
}
}