private void PiecePaint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; PieceRect pieceRect = pFactory.GetPieceRect(pType, pColor); pieceRect.Draw(g, new Point(10, 10)); }
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); }