public Form1() { InitializeComponent(); WindowState = FormWindowState.Maximized; PbPlayground.ClientSize = new Size(1000, 550); PbPlayground.BackColor = Color.Yellow; LblNrOfMoves.Text = "no moves yet"; pg = new Playground(); }
private void StartLevel(int i) { Graphics graphics = CreateGraphics(); pg = new Playground(); string filename = @"..\..\..\levels\level" + Convert.ToString(i) + ".txt"; pg.StartLevelFromFile(filename); PbPlayground.Refresh(); LblNrOfMoves.Text = "no moves yet"; }