public BjController(Form1 mainForm) { GameCounter = 0; _mainForm = mainForm; CurrentDeck = BJMassiv.GetUsualCards(); PlayersMassiv = new List <BJPlayer>(); NextTurnEvent += EndGame; PlayerTakeCardEvent += TakeCardEvent; }
private void ToNextRound() { CurrentDeck = BJMassiv.GetUsualCards(); foreach (var player in PlayersMassiv) { player.PlayerCounter = 0; foreach (var crd in player.CurrentMassiv) { if (_mainForm.Controls.Contains(crd)) { _mainForm.Controls.Remove(crd); } } player.CurrentMassiv = new List <BJCard>(); player.TakeTwoStartCards(); } }