private void Init() { var buttonList = new List <MenuItem>(); App.LanguageChanged += LanguageChanged; CultureInfo currLang = App.Language; ChangeLang.Items.Clear(); foreach (var lang in App.Languages) { MenuItem menuLang = new MenuItem() { Header = lang.DisplayName, Tag = lang, IsChecked = lang.Equals(currLang) }; menuLang.Click += ChangeLanguageClick; buttonList.Add(menuLang); } ChangeLang.ItemsSource = buttonList; FavoriteRadio = Favorite.Read(); Refresher = new Thread(RefreshArtist); }
private void AddToFavoritePanel(Radio.RadioFull radio) { FavoriteRadio = Favorite.Add(FavoriteRadio, radio); Favorite_Radio_Wrap.Children.Add(CreateRadioButton(radio, false)); }