Ejemplo n.º 1
0
        public void OnNewGameInit(GameInitArgs e)
        {
            EventHandler newgameinit = NewGameInit;

            if (newgameinit != null)
            {
                newgameinit(this, e);
            }
        }
Ejemplo n.º 2
0
        private void form_NewGameInit(object sender, EventArgs e)
        {
            GameInitArgs args = (GameInitArgs)e;

            if (table == null)
            {
                table = new Table(args.NumberOfPlayers, args.PlayerName, args.InitStack, this);
            }
            else
            {
                table.mainplayer.Name = args.PlayerName;
                render.mainform.Unsubscribe(this);
                render.mainform.ReInitialize();
                render.mainform.Subscribe(this);
            }
            Subscribe(this);
            OnGameBegin(new EventArgs());
            table.NewHand();
        }