コード例 #1
0
        private void deck1PictureBox_Paint(object sender, PaintEventArgs e)
        {
            GraphicContext.DrawShipSet(player1.ShipSet, e);
            GraphicContext.DrawDeckStatus(player1.RevealedCells, player1.ShipSet, e);

            if (player1.LastCells[0] != -1 && player1.LastCells[1] != -1)
            {
                GraphicContext.DrawOuterFrameCell(player1.LastCells[0], player1.LastCells[1], 7, e);
            }
        }
コード例 #2
0
 // Sự kiện tô tàu trên deck
 private void DeckPictureBoxPaint(object sender, PaintEventArgs e)
 {
     GraphicContext.DrawShipSet(player.ShipSet, e);
 }