Exemple #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);
 }
Exemple #2
0
 /// <summary>
 ///     Существование слоя
 /// </summary>
 /// <param name="Layer">Слой</param>
 /// <returns>Существует</returns>
 public bool Contains(MapLayer Layer)
 {
     return(_layers.Contains(Layer));
 }
Exemple #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;
 }
Exemple #4
0
 /// <summary>
 ///     Удаление слоя
 /// </summary>
 /// <param name="Layer">Слой</param>
 public void Remove(MapLayer Layer)
 {
     _layers.Remove(Layer);
     Layer._Layers = null;
 }
Exemple #5
0
 /// <summary>
 ///     Добавление слоя
 /// </summary>
 /// <param name="Layer">Слой</param>
 public void Add(MapLayer Layer)
 {
     _layers.Add(Layer);
     Layer._Layers = this;
 }