/// <summary> /// Изменение очередности слоев /// </summary> /// <param name="Layer">Слой</param> /// <param name="newIndex">Новый индекс</param> public void Move(MapLayer Layer, int newIndex) { _layers.Remove(Layer); _layers.Insert(newIndex, Layer); }
/// <summary> /// Существование слоя /// </summary> /// <param name="Layer">Слой</param> /// <returns>Существует</returns> public bool Contains(MapLayer Layer) { return(_layers.Contains(Layer)); }
/// <summary> /// Вставка слоя /// </summary> /// <param name="Layer">Слой</param> /// <param name="index">Индекс</param> public void Add(MapLayer Layer, int index) { _layers.Insert(index, Layer); Layer._Layers = this; }
/// <summary> /// Удаление слоя /// </summary> /// <param name="Layer">Слой</param> public void Remove(MapLayer Layer) { _layers.Remove(Layer); Layer._Layers = null; }
/// <summary> /// Добавление слоя /// </summary> /// <param name="Layer">Слой</param> public void Add(MapLayer Layer) { _layers.Add(Layer); Layer._Layers = this; }