private void NewGame_MouseDown(object sender, MouseButtonEventArgs e) { Form form = new GameWind(records); form.Show(); form.FormClosing += Frm2_Closing; this.Hide(); }
private void ContinueGame_MouseDown(object sender, MouseButtonEventArgs e) { Form form = new GameWind(); form.Show(); form.FormClosing += Frm2_Closing; this.Hide(); Game dgame = DataSerializer.DeserializeItem("save.dat"); Game.SCORE = dgame.scoreForSerialization; Game.KILLS = dgame.killsForSerialization; Game.MISS = dgame.missForSerialization; }