Exemplo n.º 1
0
        public PrimitiveBaseShape Copy()
        {
            PrimitiveBaseShape copy = (PrimitiveBaseShape)MemberwiseClone();

            if (Media != null)
            {
                MediaList dupeMedia = new MediaList();
                lock (Media)
                {
                    foreach (MediaEntry me in Media)
                    {
                        dupeMedia.Add(me != null ? MediaEntry.FromOSD(me.GetOSD()) : null);
                    }
                }

                copy.Media = dupeMedia;
            }
            return(copy);
        }
Exemplo n.º 2
0
        public static PrimitiveBaseShape Create()
        {
            PrimitiveBaseShape shape = new PrimitiveBaseShape();

            return(shape);
        }