public ScoreboardWindow()
        {
            InitializeComponent();

            sw = this;

            var timer = new DispatcherTimer();
            timer.Interval = new TimeSpan(0, 0, 1);
            timer.Tick += timer_Elapsed;

            timer.Start();
        }
 private void btnScoreboard_Click(object sender, RoutedEventArgs e)
 {
     var sw = new ScoreboardWindow();
     sw.Show();
 }