private void FilterBlockView() { try { ClearAoi(_blockHost); string blockType = getBlockType(); List <string> existsBlockEvname = new List <string>(); for (int i = 0; i < _recivedBlocks.Count; i++) { //if (_recivedBlocks[i].BlockInfo.mosaicInfo == null) //{ // toolStripStatusLabel3.Text = string.Format("未获取分幅[{0}]的白天晚上信息,将直接显示", _recivedBlocks[i].Name); // continue; //} //不显示夜间分块数据 //else if (_recivedBlocks[i].BlockInfo.mosaicInfo != null && _recivedBlocks[i].BlockInfo.mosaicInfo.dayOrNight != "D") if (_recivedBlocks[i].BlockInfo.mosaicInfo != null && _recivedBlocks[i].BlockInfo.mosaicInfo.dayOrNight != "D") { continue; } if (_recivedBlocks[i].BlockInfo.blockidentify != blockType) { continue; } if (_recivedBlocks[i].Satalite != _filter.Satellite || _recivedBlocks[i].Sensor != _filter.Sensor) { continue; } if (existsBlockEvname.IndexOf(_recivedBlocks[i].BlockInfo.envname) != -1) { continue; } existsBlockEvname.Add(_recivedBlocks[i].BlockInfo.envname); if (this.InvokeRequired) { this.Invoke(new Action <BlockInfoItem>(AddBlock), _recivedBlocks[i]); } else { AddBlock(_recivedBlocks[i]); } } _simpleMapControl.Render(); } catch (Exception ex) { LogFactory.WriteLine("FilterBlock:" + ex.Message); } finally { } List <BlockInfoItem> itmes = new List <BlockInfoItem>(); foreach (BlockInfoItem item in _recivedBlocks) { if (item.BlockInfo.blockidentify == "DBU" || item.BlockInfo.envname == "DBU") { item.BlockInfo.envname = "DBU"; } if (item.BlockInfo.envname == "0FEG") { itmes.Add(item); } } }