Exemplo n.º 1
0
        private void PiecePaint(object sender, PaintEventArgs e)
        {
            Graphics  g         = e.Graphics;
            PieceRect pieceRect = pFactory.GetPieceRect(pType, pColor);

            pieceRect.Draw(g, new Point(10, 10));
        }
Exemplo n.º 2
0
        internal void Draw(PieceFactory pFactory, Graphics g)
        {
            PieceRect pRect = pFactory.GetPieceRect(pType, pColor);

            imagePos.X = this.GetStartPosition().X;
            imagePos.Y = this.GetStartPosition().Y;
            pRect.Draw(g, imagePos);
        }