Exemple #1
0
        /// <summary>
        /// Copy a layerage ( form Layerbase to Clipboard).
        /// </summary>
        /// <param name="customDevice"> The custom-device. </param>
        /// <param name="layerage"> The layerage. </param>
        public static void CopyLayerage(CanvasDevice customDevice, Layerage layerage)
        {
            //
            ILayer layer  = layerage.Self;
            ILayer clone2 = layer.Clone(customDevice);

            Clipboard.Instances.Add(clone2);
            //

            LayerageCollection._copyLayerage(customDevice, layerage.Children);
        }
Exemple #2
0
        private static void _copyLayerage(CanvasDevice customDevice, IList <Layerage> children)
        {
            foreach (Layerage layerage in children)
            {
                LayerageCollection._copyLayerage(customDevice, layerage.Children);

                //
                ILayer layer = layerage.Self;
                ILayer clone = layer.Clone(customDevice);
                Clipboard.Instances.Add(clone);
                //
            }
        }