private void button_nextGame_Click(object sender, EventArgs e) { this.Close(); GlobalData.numRound_FiveLink = 1; if (GlobalData.NumGame == 1) { FiveLinkForm link5 = new FiveLinkForm(); link5.Visible = true; } else if (GlobalData.NumGame == 2) { FiveLinkForm2 link52 = new FiveLinkForm2(); link52.Visible = true; } }
private void button_nextRound_Click(object sender, EventArgs e) { GlobalData.numRound_FiveLink = GlobalData.numRound_FiveLink + 1; //this.Visible = false; this.Close(); if (GlobalData.NumGame == 1) { FiveLinkForm link = new FiveLinkForm(); link.Visible = true; } else if (GlobalData.NumGame == 2) { FiveLinkForm2 link2 = new FiveLinkForm2(); link2.Visible = true; } }