private void GamePlayBtn_Click(object sender, EventArgs e) { gf = new GameForm(PlayByLevel.Maps[0]); gf.Show(); //GamePanel = MapPanel.map; gf.BringToFront(); }
private void LoadMapBtn_Click(object sender, EventArgs e) { String map; map = ReadFile(); if (myForm == "Game") { if (mapLoc != null && map != "") { gf = new GameForm(map); gf.Show(); } } else if (myForm == "Design") { if (mapLoc != null && map != "") { ldf = new LevelDesignForm(map); ldf.Show(); } } }