示例#1
0
        /// <summary>
        /// Moves the given layer in the layer list from its current index to the bottom.
        /// </summary>
        /// <param name="layerData">The layerData object to be moved.</param>
        /// <see cref="MapImporter.LayerData"/>
        public void LayerToBottom(LayerData layerData)
        {
            LayerData temp = layerData;

            LayerDataList.Remove(layerData);
            LayerDataList.Insert(0, temp);
        }
示例#2
0
        /// <summary>
        /// Moves the given layer in the layer list from its current index to the top.
        /// </summary>
        /// <param name="layerData">The layerData object to be moved.</param>
        /// <see cref="MapImporter.LayerData"/>
        public void LayerToTop(LayerData layerData)
        {
            LayerData temp = layerData;

            LayerDataList.Remove(layerData);
            LayerDataList.Add(temp);
        }