public void ShowSecrets(bool force = false, HeroClass?heroClass = null)
        {
            if (Config.Instance.HideSecrets && !force)
            {
                return;
            }

            StackPanelSecrets.Children.Clear();
            var secrets = heroClass == null?_game.OpponentSecrets.GetSecrets() : _game.OpponentSecrets.GetDefaultSecrets(heroClass.Value);

            foreach (var id in secrets)
            {
                var count = id.AdjustedCount(_game);
                if (count <= 0 && Config.Instance.RemoveSecretsFromList)
                {
                    continue;
                }
                var card = Database.GetCardFromId(id.CardId);
                card.Count = count;
                var cardObj = new Controls.Card();
                cardObj.SetValue(DataContextProperty, card);
                StackPanelSecrets.Children.Add(cardObj);
            }

            StackPanelSecrets.Visibility = Visible;
        }
        public void ShowSecrets(List <Card> secrets, bool force = false)
        {
            if ((Config.Instance.HideSecrets || _game.CurrentGameType == GameType.GT_BATTLEGROUNDS) && !force)
            {
                return;
            }

            StackPanelSecrets.Children.Clear();

            foreach (var secret in secrets)
            {
                if (secret.Count <= 0 && Config.Instance.RemoveSecretsFromList)
                {
                    continue;
                }
                var cardObj = new Controls.Card();
                cardObj.SetValue(DataContextProperty, secret);
                StackPanelSecrets.Children.Add(cardObj);
            }

            StackPanelSecrets.Visibility = Visible;
        }
        public void ShowSecrets(bool force = false, HeroClass? heroClass = null)
        {
            if (Config.Instance.HideSecrets && !force)
                return;

            StackPanelSecrets.Children.Clear();
            var secrets = heroClass == null ? _game.OpponentSecrets.GetSecrets() : _game.OpponentSecrets.GetDefaultSecrets(heroClass.Value);
            foreach (var id in secrets)
            {
                var cardObj = new Controls.Card();
                var card = Database.GetCardFromId(id.CardId);
                card.Count = id.AdjustedCount(_game);
                cardObj.SetValue(DataContextProperty, card);
                StackPanelSecrets.Children.Add(cardObj);
            }

            StackPanelSecrets.Visibility = Visibility.Visible;
        }