コード例 #1
0
        private void layerList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int gdbIndex   = gdbList.SelectedIndex;
            int layerIndex = layerList.SelectedIndex;

            if (gdbIndex >= 0 && gdbIndex < activeLayer.LayerObj.LayerAccessInfo.Length &&
                layerIndex >= 0 && layerIndex < activeLayer.LayerObj.LayerAccessInfo[gdbIndex].LayerInfoList.Length)
            {
                CSetLayerIndex obj = new CSetLayerIndex();
                obj.GdbIndex   = gdbIndex;
                obj.LayerIndex = layerIndex;
                activeLayer.GetLayerAttStruct(obj, new UploadStringCompletedEventHandler(GetAttStructCallBack));
            }
        }