BattleShip.Form1.Form1_Paint C# (CSharp) Метод

Form1_Paint() приватный Метод

Display each platform + ship
private Form1_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
Результат void
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            platAlly.Display(e);
            platEnemy.Display(e);

           
            foreach (Ship ship in ships)
            {
                ship.drawShip(e.Graphics);
            }

            /*if (!gameInProgress)
            {
                foreach (Cendre c in cendres)
                {
                    c.OnPaint(e);
                }
            }*/

            if (gameover != null)
                gameover.Draw(e);
        }