private void btnOui_Click(object sender, EventArgs e) { Close(); INGAME f3 = new INGAME(); f3.Close(); f3.startingDay = startingDay; f3.startingTime = startingTime; f3.f4duration = duration; f3.idJeux = idJeux; f3.btnStop_Click(sender, e); GAME f2 = new GAME(); }
private void btnNon_Click(object sender, EventArgs e) { this.Hide(); INGAME f3 = new INGAME(); f3.startingDay = startingDay; f3.startingTime = startingTime; f3.f4duration = duration; f3.idJeux = idJeux; GAME f2 = new GAME(); f2.openedWindow = flag; f2.Show(); }
public void LaunchF6(string flag, int idJeux) { DateTime Now = DateTime.Now; string[] info = Now.ToString().Split(' '); this.Close(); INGAME f6 = new INGAME(); this.Close(); f6.startingDay = info[0]; f6.startingTime = info[1]; f6.flag = flag; f6.idJeux = idJeux; f6.Show(); }