internal void UpdatePlayersInfo(PlayerModel sender, PlayerModelEventArgs eventArgs)
        {
            //kostil
            if (sender.Name == "Ivan")
            {
                textPlayerName_1.Text             = eventArgs.name;
                textPlayerHealth_1.Text           = eventArgs.health.ToString();
                progressBarPlayerHealth_1.Maximum = 100;
                progressBarPlayerHealth_1.Value   = eventArgs.health;
                progressBarPlayerHealth_1.Minimum = 0;
                progressBarPlayerHealth_1.Step    = 1;
            }
            else
            {
                textPlayerName_2.Text             = eventArgs.name;
                textPlayerHealth_2.Text           = eventArgs.health.ToString();
                progressBarPlayerHealth_2.Maximum = 100;
                progressBarPlayerHealth_2.Value   = eventArgs.health;
                progressBarPlayerHealth_2.Minimum = 0;
                progressBarPlayerHealth_2.Step    = 1;
            }

            CheckedRadioButtonEvent(groupBoxHit.Controls);
            CheckedRadioButtonEvent(groupBoxBlock.Controls);
        }
        public GameController(GameView view, GameModel model)
        {
            this.view              = view;
            this.model             = model;
            this.model.StartRound += Model_StartRound;
            this.view.Init(this);

            this.model.RoundIsStart = false;

            foreach (PlayerModel player in this.model.players)
            {
                PlayerModelEventArgs eventArgs = new PlayerModelEventArgs(player.Name, player.Health);
                view.UpdatePlayersInfo(player, eventArgs);
                player.Wound += Player_Wound;
                player.Block += Player_Block;
                player.Death += Player_Death;
            }
        }
 internal void PlayerDeath(PlayerModel sender, PlayerModelEventArgs eventArgs)
 {
     textLog.Text = "Игрок " + eventArgs.name + " получил смертельные увечия!";
 }
 private void Player_Wound(PlayerModel sender, PlayerModelEventArgs eventArgs)
 {
     view.UpdatePlayersInfo(sender, eventArgs);
 }
 private void Player_Death(PlayerModel sender, PlayerModelEventArgs eventArgs)
 {
     view.PlayerDeath(sender, eventArgs);
     //view.UpdatePlayersInfo(sender, eventArgs);
 }