private void restartToolStripMenuItem_Click(object sender, EventArgs e) { if (isGameWorking) { neo = new NeoSnake(pole_gry.Width, pole_gry.Height); frt = new Fruit(neo.getSegment()); } }
private void startToolStripMenuItem_Click(object sender, EventArgs e) { isGameWorking = true; isFirstLaunch = false; pauzaToolStripMenuItem.Enabled = true; restartToolStripMenuItem.Enabled = true; neo = new NeoSnake(pole_gry.Width, pole_gry.Height); frt = new Fruit(neo.getSegment()); }