Example #1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public Rotate()
        {
            _hand.Bitmap    = Jx.Drawing.Properties.Resources.Rotate.ToBitmap();
            _hand.Selected  = true;
            _hand.Dimension = new Size(9, 9);

            Ghost = new GhostCollection();
        }
Example #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);
        }