public Banner()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getSignDirectionStrCount(); i++)
     {
         tabBannerFacing.Items.Add(asd.getSignDirectionStr(i));
     }
     for (int i = 0; i < asd.getBannerTypeCount(); i++)
     {
         tabBannerType.Items.Add(asd.getBannerTypeStr(i));
     }
     for (int i = 0; i < asd.getBannerColorCount(); i++)
     {
         tabBannerBaseColor.Items.Add(asd.getBannerColorStr(i));
         tabBannerColor.Items.Add(asd.getBannerColorStr(i));
     }
     clear();
 }
 private void tabSumosType_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     allVisInit();
     AllSelData asd = new AllSelData();
     if (asd.getAt(tabSumosType.SelectedIndex) == "Villager" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:villager")
     {
         SummonVHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "ArmorStand" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:armor_stand")
     {
         SummonArmorStandHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Item" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:item")
     {
         SummonSHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Enderman" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:enderman")
     {
         tabSumosEEnderman.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Ozelot" || asd.getAt(tabSumosType.SelectedIndex) == "Wolf" || asd.getAt(tabSumosType.SelectedIndex) == "EntityHorse" || asd.getAt(tabSumosType.SelectedIndex) == "PigZombie" || asd.getAt(tabSumosType.SelectedIndex) == "Snowball" || asd.getAt(tabSumosType.SelectedIndex) == "ThrownEgg" || asd.getAt(tabSumosType.SelectedIndex) == "ThrownEnderpearl" || asd.getAt(tabSumosType.SelectedIndex) == "ThrownExpBottle" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ocelot" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:wolf" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:skeleton_horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:mule" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:donkey" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_pigman" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:snowball" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:egg" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ender_pearl" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:xp_bottle")
     {
         tabSumosEUUID.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Wolf" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:wolf")
     {
         tabSumosEWoolColor.IsEnabled = true;
         tabSumosEWoolColor.Items.Clear();
         for (int i = 0; i < asd.getBannerColorCount(); i++)
         {
             tabSumosEWoolColor.Items.Add(asd.getBannerColorStr(i));
         }
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Creeper" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:creeper")
     {
         tabSumosEExplosionRadius.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "EnderDragon" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ender_dragon")
     {
         tabSumosEDragon.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Slime" || asd.getAt(tabSumosType.SelectedIndex) == "LavaSlime" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:slime" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:magma_cube")
     {
         tabSumosESize.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Shulker" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:shulker")
     {
         tabSumosEShulkerPeek.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Creeper" || asd.getAt(tabSumosType.SelectedIndex) == "PrimedTnt" || asd.getAt(tabSumosType.SelectedIndex) == "MinecartTNT" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:creeper" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:tnt" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:tnt_minecart")
     {
         tabSumosEFuse.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Ghast" || asd.getAt(tabSumosType.SelectedIndex) == "Fireball" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ghast" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:fireball")
     {
         tabSumosEExplosionPower.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Ozelot" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:ocelot")
     {
         tabSumosECatType.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Rabbit" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:rabbit")
     {
         tabSumosERabbitType.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "WitherBoss" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:wither")
     {
         tabSumosEInvul.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Creeper" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:creeper")
     {
         tabSumosEPowered.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Endermite" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:endermite")
     {
         tabSumosEAtkByEnderman.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Zombie" || asd.getAt(tabSumosType.SelectedIndex) == "PigZombie" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:husk" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_villager" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_pigman")
     {
         tabSumosECanBreakDoor.IsEnabled = true;
         SummonVHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Zombie")
     {
         tabSumosEZombieType.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Sheep" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:sheep")
     {
         tabSumosEWoolColor.IsEnabled = true;
         tabSumosESheared.IsEnabled = true;
         tabSumosEWoolColor.Items.Clear();
         for (int i = 0; i < asd.getWoolColorCount(); i++)
         {
             tabSumosEWoolColor.Items.Add(asd.getWoolColor(i));
         }
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "VillagerGolem" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:villager_golem")
     {
         tabSumosEPlayerCreated.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Guardian")
     {
         tabSumosEElder.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Pig" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:pig")
     {
         tabSumosESaddle.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Skeleton")
     {
         tabSumosEZombieType.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "PigZombie" || asd.getAt(tabSumosType.SelectedIndex) == "Wolf" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_pigman" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:wolf")
     {
         tabSumosEAngry.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Arrow" || asd.getAt(tabSumosType.SelectedIndex) == "TippedArrow" || asd.getAt(tabSumosType.SelectedIndex) == "SpectralArrow" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:arrow" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:spectral_arrow")
     {
         tabSumosEpickup.IsEnabled = true;
         tabSumosEdamage.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "EntityHorse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:zombie_horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:skeleton_horse" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:mule" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:donkey")
     {
         SummonHorseHeader.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "Item" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:item")
     {
         tabSumosEOwner.IsEnabled = true;
         tabSumosEThrower.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "XPOrb" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:xp_orb")
     {
         tabSumosEExp.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "AreaEffectCloud" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:area_effect_cloud")
     {
         tabSumosEDuration.IsEnabled = true;
         tabSumosERadius.IsEnabled = true;
         tabSumosEParticle.IsEnabled = true;
         tabSumosEParticleColor.IsEnabled = true;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "FallingSand" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:falling_block")
     {
         SummonSand.Visibility = Visibility.Visible;
     }
     if (asd.getAt(tabSumosType.SelectedIndex) == "ItemFrame" || asd.getAt(tabSumosType.SelectedIndex) == "minecraft:item_frame")
     {
         SummonFrame.Visibility = Visibility.Visible;
     }
 }
 private void listFlush()
 {
     pageList.Items.Clear();
     AllSelData asd = new AllSelData();
     for (int i = 0; i <= tabBannerMaxIndex; i++)
     {
         if (i < globalBannerMaxIndex)
         {
             int ii = i + 1;
             pageList.Items.Add("[" + ii + "] " + asd.getBannerColorStr(globalBannerColor[i]) + asd.getBannerTypeStr(globalBannerType[i]));
         }
     }
 }