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