Example #1
0
        private void NewGame_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Form form = new GameWind(records);

            form.Show();
            form.FormClosing += Frm2_Closing;
            this.Hide();
        }
Example #2
0
        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;
        }