Beispiel #1
0
 private async void AddStarButton_Click(object sender, RoutedEventArgs e)
 {
     (sender as Button).IsEnabled = false;
     try
     {
         MainPage.Current.StarList.Add(_sourceFeed);
         AddStarButton.Visibility    = Visibility.Collapsed;
         RemoveStarButton.Visibility = Visibility.Visible;
         new PopupToast(AppTools.GetReswLanguage("Tip_AddStarListSuccess")).ShowPopup();
         await IOTools.AddStar(_sourceFeed);
     }
     catch (Exception ex)
     {
         new PopupToast(ex.Message, AppTools.GetThemeSolidColorBrush(ColorType.ErrorColor)).ShowPopup();
     }
     (sender as Button).IsEnabled = true;
 }