GameScript.showItemSelectList C# (CSharp) Method

showItemSelectList() private method

private showItemSelectList ( ) : void
return void
    private void showItemSelectList()
    {
        txtPnlSelectItemsId1.text = "";
        txtPnlSelectItemsId2.text = "";
        txtPnlSelectItemsId3.text = "";
        txtPnlSelectItemsId4.text = "";

        txtPnlSelectItemsAmount1.text = "";
        txtPnlSelectItemsAmount2.text = "";
        txtPnlSelectItemsAmount3.text = "";
        txtPnlSelectItemsAmount4.text = "";

        txtPnlSelectItems1.text = "";
        txtPnlSelectItems2.text = "";
        txtPnlSelectItems3.text = "";
        txtPnlSelectItems4.text = "";

        txtPnlSelectItemsCurrencyAmount1.text = "";
        txtPnlSelectItemsCurrencyAmount2.text = "";
        txtPnlSelectItemsCurrencyAmount3.text = "";
        txtPnlSelectItemsCurrencyAmount4.text = "";

        txtPnlSelectItemsCurrency1.text = "";
        txtPnlSelectItemsCurrency2.text = "";
        txtPnlSelectItemsCurrency3.text = "";
        txtPnlSelectItemsCurrency4.text = "";

        for (int i = 0; i < (!ShowBundles ? Spil.GameData.Items.Count : Spil.GameData.Bundles.Count); i++)
        {
            if (i >= pnlSelectItemCurrentPage * 4 && i < (pnlSelectItemCurrentPage + 1) * 4)
            {
                if (i % 4 == 0)
                {
                    txtPnlSelectItemsId1.text = "Id: " + (!ShowBundles ? Spil.GameData.Items[i].Id.ToString() : Spil.GameData.Bundles[i].Id.ToString());
                    txtPnlSelectItemsAmount1.text = "X: 0";
                    txtPnlSelectItems1.text = (!ShowBundles ? Spil.GameData.Items[i].Name : Spil.GameData.Bundles[i].Name);
                    if (ShowBundles)
                    {
                        txtPnlSelectItemsCurrencyAmount1.text = Spil.GameData.Bundles[i].Prices[0].Value.ToString();
                        txtPnlSelectItemsCurrency1.text = Spil.GameData.GetCurrency(Spil.GameData.Bundles[i].Prices[0].CurrencyId).Name;
                    }
                }
                if (i % 4 == 1)
                {
                    txtPnlSelectItemsId2.text = "Id: " + (!ShowBundles ? Spil.GameData.Items[i].Id.ToString() : Spil.GameData.Bundles[i].Id.ToString());
                    txtPnlSelectItemsAmount2.text = "X: 0";
                    txtPnlSelectItems2.text = (!ShowBundles ? Spil.GameData.Items[i].Name : Spil.GameData.Bundles[i].Name);
                    if (ShowBundles)
                    {
                        txtPnlSelectItemsCurrencyAmount2.text = Spil.GameData.Bundles[i].Prices[0].Value.ToString();
                        txtPnlSelectItemsCurrency2.text = Spil.GameData.GetCurrency(Spil.GameData.Bundles[i].Prices[0].CurrencyId).Name;
                    }
                }
                if (i % 4 == 2)
                {
                    txtPnlSelectItemsId3.text = "Id: " + (!ShowBundles ? Spil.GameData.Items[i].Id.ToString() : Spil.GameData.Bundles[i].Id.ToString());
                    txtPnlSelectItemsAmount3.text = "X: 0";
                    txtPnlSelectItems3.text = (!ShowBundles ? Spil.GameData.Items[i].Name : Spil.GameData.Bundles[i].Name);
                    if (ShowBundles)
                    {
                        txtPnlSelectItemsCurrencyAmount3.text = Spil.GameData.Bundles[i].Prices[0].Value.ToString();
                        txtPnlSelectItemsCurrency3.text = Spil.GameData.GetCurrency(Spil.GameData.Bundles[i].Prices[0].CurrencyId).Name;
                    }
                }
                if (i % 4 == 3)
                {
                    txtPnlSelectItemsId4.text = "Id: " + (!ShowBundles ? Spil.GameData.Items[i].Id.ToString() : Spil.GameData.Bundles[i].Id.ToString());
                    txtPnlSelectItemsAmount4.text = "X: 0";
                    txtPnlSelectItems4.text = (!ShowBundles ? Spil.GameData.Items[i].Name : Spil.GameData.Bundles[i].Name);
                    if (ShowBundles)
                    {
                        txtPnlSelectItemsCurrencyAmount4.text = Spil.GameData.Bundles[i].Prices[0].Value.ToString();
                        txtPnlSelectItemsCurrency4.text = Spil.GameData.GetCurrency(Spil.GameData.Bundles[i].Prices[0].CurrencyId).Name;
                    }
                }
            }
        }
    }