示例#1
0
        private void btnNewGame_Click(object sender, EventArgs e)
        {
            BreakmanForm = new Breakman(false);

            BreakmanForm.Show();

            Hide();
        }
示例#2
0
        private void btnContinueSavedGame_Click(object sender, EventArgs e)
        {
            if (File.Exists("bricks.bin"))
            {
                BreakmanForm = new Breakman(true);

                BreakmanForm.Show();

                Hide();
            }
            else
            {
                MessageBox.Show("No saved game present!");
            }
        }