public CustomCraft()
 {
     InitializeComponent();
     appLanguage();
     AllSelData asd = new AllSelData();
     for (int i = 0; i < asd.getItemNameListCount(); i++)
     {
         cb1.Items.Add(asd.getItemNameList(i));
         cb2.Items.Add(asd.getItemNameList(i));
         cb3.Items.Add(asd.getItemNameList(i));
         cb4.Items.Add(asd.getItemNameList(i));
         cb5.Items.Add(asd.getItemNameList(i));
         cb6.Items.Add(asd.getItemNameList(i));
         cb7.Items.Add(asd.getItemNameList(i));
         cb8.Items.Add(asd.getItemNameList(i));
         cb9.Items.Add(asd.getItemNameList(i));
         cb1_Copy.Items.Add(asd.getItemNameList(i));
         cb2_Copy.Items.Add(asd.getItemNameList(i));
         cb3_Copy.Items.Add(asd.getItemNameList(i));
         cb4_Copy.Items.Add(asd.getItemNameList(i));
         cb5_Copy.Items.Add(asd.getItemNameList(i));
         cb6_Copy.Items.Add(asd.getItemNameList(i));
         cb7_Copy.Items.Add(asd.getItemNameList(i));
         cb8_Copy.Items.Add(asd.getItemNameList(i));
         cb9_Copy.Items.Add(asd.getItemNameList(i));
     }
     for (int i = 0; i < asd.getUniColorStrCount(); i++)
     {
         CustomNameColor.Items.Add(asd.getUniColorStr(i));
         CustomNameColor_Copy.Items.Add(asd.getUniColorStr(i));
     }
 }
 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");
 }