public Potion()
 {
     InitializeComponent();
     appLanguage();
     clear();
     Config config = new Config();
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
 }
 private void fixColorSelSign_Loaded(object sender, RoutedEventArgs e)
 {
     appLanguage();
     Config config = new Config();
     string configStr = config.getSetting("[Personalize]", "ColorfulFontsUse");
     if (configStr == "Sign")
     {
         fixColorSelCB.IsChecked = false;
         fixColorSelSign.IsChecked = true;
     }
     else
     {
         fixColorSelSign.IsChecked = false;
         fixColorSelCB.IsChecked = true;
     }
 }
 public OtherMap()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         tabOther1HatSel.Items.Add(asd.getItemNameList(i));
         tabOther1ItemFlySel.Items.Add(asd.getItemNameList(i));
         tabOther1JukeboxItemSel.Items.Add(asd.getItemNameList(i));
         tabOther1TestforInvItem.Items.Add(asd.getItemNameList(i));
         tabOther1LockItem.Items.Add(asd.getItemNameList(i));
     }
     tabOther1RideSel.Items.Add(OtherListNorth);
     tabOther1RideSel.Items.Add(OtherListSouth);
     tabOther1RideSel.Items.Add(OtherListWest);
     tabOther1RideSel.Items.Add(OtherListEast);
     tabOther1RideSel.SelectedIndex = 0;
     Config config = new Config();
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
 }
 private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
 {
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getUniColorStrCount(); i++)
     {
         tBookAuthorColorSel.Items.Add(asd.getUniColorStr(i));
         tBookTitleColorSel.Items.Add(asd.getUniColorStr(i));
     }
     for (int i = 0; i < asd.getColorStrCount(); i++)
     {
         TextColorSel.Items.Add(asd.getColorStr(i));
     }
     for (int i = 0; i < asd.getAtListCount(); i++)
     {
         tHEShowEntityType.Items.Add(asd.getAtNameList(i));
     }
     appLanguage();
     clear();
     Config config = new Config();
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
 }
 public At()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getAtListCount(); i++)
     {
         type.Items.Add(asd.getAtNameList(i));
     }
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         hand.Items.Add(asd.getItemNameList(i));
     }
     for (int i = 0; i < asd.getAtListCount(); i++)
     {
         rideEntity.Items.Add(asd.getAtNameList(i));
     }
     clear();
     Config config = new Config();
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
 }
 public Summon()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getAtListCount(); i++)
     {
         tabSumosType.Items.Add(asd.getAtNameList(i));
         tabSpawnerShowType.Items.Add(asd.getAtNameList(i));
         tabSpawner1Type.Items.Add(asd.getAtNameList(i));
         tabSpawner2Type.Items.Add(asd.getAtNameList(i));
         tabSpawner3Type.Items.Add(asd.getAtNameList(i));
         tabSpawner4Type.Items.Add(asd.getAtNameList(i));
     }
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         tabSummonItem.Items.Add(asd.getItemNameList(i));
         tabSumosLHand.Items.Add(asd.getItemNameList(i));
         tabSumosHand.Items.Add(asd.getItemNameList(i));
         tabSumosBoot.Items.Add(asd.getItemNameList(i));
         tabSumosLeg.Items.Add(asd.getItemNameList(i));
         tabSumosChest.Items.Add(asd.getItemNameList(i));
         tabSumosHead.Items.Add(asd.getItemNameList(i));
         tabVillagerA.Items.Add(asd.getItemNameList(i));
         tabVillagerB.Items.Add(asd.getItemNameList(i));
         tabVillagerC.Items.Add(asd.getItemNameList(i));
         FallingSandItemSel.Items.Add(asd.getItemNameList(i));
     }
     for (int i = 0; i < asd.getHideListCount(); i++)
     {
         tabSummonHide.Items.Add(asd.getHideList(i));
     }
     for (int i = 0; i < asd.getVillagerTypeCount(); i++)
     {
         tabVillagerType.Items.Add(asd.getVillagerType(i));
     }
     for (int i = 0; i < ridingIndex.Length; i++)
     {
         for (int b = 0; b < ridingIndex.Length; b++)
         {
             ridingList[i,b] = "";
         }
     }
     for (int i = 0; i < ridingIndex.Length; i++)
     {
         ridingIndex[i] = 0;
     }
     for (int i = 0; i < asd.getWoolColorCount(); i++)
     {
         tabSumosEWoolColor.Items.Add(asd.getWoolColor(i));
     }
     for (int i = 0; i < HorseChestList.Length; i++)
     {
         HorseChestList[i] = "";
     }
     clear();
     allVisInit();
     Config config = new Config();
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
     if (mcVersion == "1.8")
     {
         tabSumosLHandBtn.IsEnabled = false;
         tabSumosLeftHand.IsEnabled = false;
         tabSumosDCLHand.IsEnabled = false;
         tabSumosGlowing.IsEnabled = false;
         tabSumosTagsCheck.IsEnabled = false;
         tabSumosRidingV1.IsEnabled = false;
         tabSumosRidingClear.IsEnabled = false;
         tabSumosElytra.IsEnabled = false;
     }
     else if (mcVersion == "latest")
     {
         HorseType.IsEnabled = false;
         HorseSaddle.IsEnabled = false;
     }
 }
 public string getLangFile()
 {
     Config config = new Config();
     return config.getSetting("[Personalize]", "Language");
 }
 private void pass_Click(object sender, RoutedEventArgs e)
 {
     Config config = new Config();
     config.setSetting(new System.Collections.Generic.Dictionary<string, string> { { "PassVersion", getversion } });
     pass.Content = "√";
 }
 public AllSelData()
 {
     Config config = new Config();
     nowLang = config.getSetting("[Personalize]", "Language");
     mcVersion = config.getSetting("[Personalize]", "MCVersion");
 }