Exemplo n.º 1
0
Arquivo: Rotate.cs Projeto: nistck/Jx
        /// <summary>
        /// Default constructor.
        /// </summary>
        public Rotate()
        {
            _hand.Bitmap    = Resource.Rotate.ToBitmap();
            _hand.Selected  = true;
            _hand.Dimension = new Size(9, 9);

            Ghost = new GhostCollection();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Clones the GhostCollection.
        /// </summary>
        /// <returns>New GhostCollection.</returns>
        public override object Clone()
        {
            GhostCollection clonedCollection = new GhostCollection();

            foreach (IShape shape in _ghosts)
            {
                clonedCollection.Ghosts.Add(shape.Clone() as IShape);
            }

            return(clonedCollection);
        }