Example #1
0
        /// <summary>
        /// エディットレイヤー選択
        /// </summary>
        /// <param name="selIdx"></param>
        private void SelectEditLayer(int selIdx)
        {
            // 前のエディットレイヤーを元のカラーに戻す
            if (null != EditLayer)
            {
                EditLayer.UpdateMapBmp(LRF_PixelSize, colLayerPixel, colLayerBase);
            }

            if (null != MapLyaer)
            {
                EditLayer = MapLyaer[selIdx];
                EditLayer.UpdateMapBmp(LRF_PixelSize, colEditLayerPixel, colLayerBase);

                num_PositionX.Value = (int)EditLayer.lcX;
                num_PositionY.Value = (int)EditLayer.lcY;
                num_Angle.Value = (int)EditLayer.lcAng;
                cb_UseLayer.Checked = EditLayer.useFlg;

                UpdateEditMap();

                UpdateAllLayerFLG = true;
                UpdateTRG = true;
            }
        }