コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: fafnir901/fwd
 private void Statisticks_OnClick(object sender, RoutedEventArgs e)
 {
     if (_viewingArticle != null)
     {
         var stat = new Views.Statistics(_viewingArticle);
         stat.ShowDialog();
     }
     else
     {
         var article = GetArticlesFromListBox().FirstOrDefault();
         var stat    = new Views.Statistics(article);
         stat.ShowDialog();
     }
 }
コード例 #2
0
 private void Statisticks_OnClick(object sender, RoutedEventArgs e)
 {
     if (_viewingArticle != null)
     {
         var stat = new Views.Statistics(_viewingArticle);
         stat.ShowDialog();
     }
     else
     {
         var article = GetArticlesFromListBox().FirstOrDefault();
         var stat = new Views.Statistics(article);
         stat.ShowDialog();
     }
 }