public static void ShowStatistics(Window owner, string statistics) { FlowDocumentWindow window = new FlowDocumentWindow { Owner = owner, Statistics = statistics }; window.ShowDialog(); }
private void CalculateTopGoalScorersClick(object sender, RoutedEventArgs e) { string statistics = Score.CalculateTopGoalScorers(); FlowDocumentWindow.ShowStatistics(this, statistics); }