private void comboAsset_SelectedIndexChanged(object sender, EventArgs e)
 {
     Program.newAsset = LocaleChanger.GetLocaleFromLanguageListItem(Program.languageList[comboAsset.SelectedIndex]);
     if (!LocaleChanger.CheckIfAssetExists(Program.newAsset))
     {
         var message = assetNotFoundMessage.Replace("xxxx", Program.newAsset);
         var result  = MessageBox.Show(message, "Asset Not Found", MessageBoxButtons.YesNo);
         if (result == DialogResult.Yes)
         {
             comboLocale.SelectedIndex = comboAsset.SelectedIndex;
             labelInfo.Text            = assetNotFoundHint.Replace("xxxx", Program.newAsset);
             chkLaunchSC2.Checked      = true;
             chkLaunchSC2.Enabled      = false;
             comboLocale.Enabled       = false;
             comboAsset.Enabled        = false;
             return;
         }
         for (int i = 0; i < Program.languageList.Length; i++)
         {
             if (LocaleChanger.GetLocaleFromLanguageListItem(Program.languageList[i]) == Program.currentAsset)
             {
                 comboAsset.SelectedIndex = i;
             }
             if (LocaleChanger.GetLocaleFromLanguageListItem(Program.languageList[i]) == Program.currentLocale)
             {
                 comboLocale.SelectedIndex = i;
             }
         }
     }
     comboLocale.Enabled  = true;
     comboAsset.Enabled   = true;
     chkLaunchSC2.Enabled = true;
 }
 private void comboLocale_SelectedIndexChanged(object sender, EventArgs e)
 {
     labelPing.Text           = checkingPingMessage;
     Program.newLocale        = LocaleChanger.GetLocaleFromLanguageListItem(Program.languageList[comboLocale.SelectedIndex]);
     Program.pingRegion       = LocaleChanger.GetRegionFromLanguageListItem(Program.languageList[comboLocale.SelectedIndex]);
     comboAsset.SelectedIndex = comboLocale.SelectedIndex;
     timerCheckPing.Enabled   = true;
 }
 private void buttonRelocalize_Click(object sender, EventArgs e)
 {
     LocaleChanger.RunRelocalize();
     if (buttonRelocalize.Text.Equals(""))
     {
         var message = CreateRelocalizeMessage();
         MessageBox.Show(message);
     }
     else
     {
         MessageBox.Show(waitForDownloadMessage);
     }
     if (chkLaunchSC2.Checked)
     {
         Process.Start(Settings.Default.SC2Location + "StarCraft II.exe");
     }
     Application.Exit();
 }