コード例 #1
0
        public void SetSelectionFromMetaData(List <string> inSelectionList)
        {
            _areaMapComponent.DeselectAll(false);
            List <Area> areas = new List <Area>();

            foreach (string item in inSelectionList)
            {
                List <Area> found = AreaMapComponent.FindAreaFromMetaData(item);
                if (found != null && found.Count > 0)
                {
                    areas.AddRange(found);
                }
            }

            if (areas.Count > 0)
            {
                _areaMapComponent.AddToSelection(areas, false);
            }

            _areaMapComponent.Invalidate();
        }