private void changeFavoriteToolStripMenuItem_Click(object sender, EventArgs e) { fileRepo.SaveFavoritePlayers(country, convertFavoriteFramesToList()); fileRepo.SavePlayerImages(country, playerList); TeamSelect teamSelectForm = new TeamSelect(); teamSelectForm.Show(); this.Hide(); }
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(); }