/// <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); }
/// <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); }