コード例 #1
0
ファイル: PlayerSelect.cs プロジェクト: Iandelk/WorldCup
        private void changeFavoriteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fileRepo.SaveFavoritePlayers(country, convertFavoriteFramesToList());
            fileRepo.SavePlayerImages(country, playerList);
            TeamSelect teamSelectForm = new TeamSelect();

            teamSelectForm.Show();
            this.Hide();
        }
コード例 #2
0
        private void btnPickLanguage_Click(object sender, EventArgs e)
        {
            string selectedLanguage = cbLanguage.SelectedItem.ToString();

            if (selectedLanguage == LANGUAGE_CROATIAN)
            {
                FileRepo.SaveCulture(LANGUAGE_CROATIAN_SHORT);
                Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture(LANGUAGE_CROATIAN_SHORT);
            }
            else
            {
                FileRepo.SaveCulture(LANGUAGE_ENGLISH_SHORT);
                Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture(LANGUAGE_ENGLISH_SHORT);
            }


            TeamSelect teamSelectForm = new TeamSelect();

            teamSelectForm.Show();
            this.Hide();
        }