Beispiel #1
0
 private async void RejectButton_Click(object sender, RoutedEventArgs e)
 {
     Reject.IsEnabled = false;
     if (await core.RejectArticleAsync(currentArticle.ArticleId, UserCredentials.Account.AccountId))
     {
         MessageBox.Show($"Article {currentArticle.Topic} rejected");
         Close();
     }
     else
     {
         MessageBox.Show("Something went wrong while rejeting article");
     }
     Reject.IsEnabled = true;
 }
 private async void RejectButton_Click(object sender, RoutedEventArgs e)
 {
     if (PresentationsList.SelectedIndex >= 0)
     {
         var presentation = (PresentationDTO)PresentationsList.SelectedItem;
         if (await articleCore.RejectArticleAsync(presentation.ArticleId, UserCredentials.Account.AccountId))
         {
             MessageBox.Show("Presentation and article rejected");
             LoadPresentations();
         }
         else
         {
             MessageBox.Show("Something went wrong while rejecting presentation and article");
         }
     }
     else
     {
         MessageBox.Show("Select presentation first");
     }
 }