Esempio n. 1
0
        /// <summary>
        /// Добавляет слои из переданного объекта в текущий
        /// </summary>
        /// <param name="gridLayers2D">Объект GridLayers2D</param>
        public void Merge(GridLayers2D gridLayers2D)
        {
            if (gridLayers2D == null)
            {
                return;
            }

            GridLayers1 = MergeGridLayerLists(GridLayers1, gridLayers2D.GridLayers1);
            GridLayers2 = MergeGridLayerLists(GridLayers2, gridLayers2D.GridLayers2);
        }
Esempio n. 2
0
        /// <summary>
        /// Добавляет слои из объекта геометрии
        /// </summary>
        /// <param name="geometry">Объект Geometry</param>
        private void InsertGridLayersFromGeometry(Geometry2D geometry)
        {
            if (geometry == null)
            {
                return;
            }

            GridLayers2D gridLayers2D = geometry.GetGridLayers2D;

            GridLayers2D.Merge(gridLayers2D);
        }