Exemple #1
0
        private void OnGameEnd(EndgameArgs e)
        {
            EventHandler end = GameEnd;

            if (end != null)
            {
                end(this, e);
            }
        }
Exemple #2
0
        void game_GameEnd(object sender, EventArgs e)
        {
            EndgameArgs args = e as EndgameArgs;

            if (args.result == DialogResult.Yes)
            {
                Unsubscribe(game);
                ReInitialize();
                Subscribe(game);
                ngform.OnNewGameInit(new GameInitArgs(2, (int)ngform.nudInitStack.Value, ngform.tbName.Text));
            }
            else
            {
                Close();
            }
        }