private void showStatsButton_Click(object sender, MouseEventArgs e)
        {
            var window = new PlayerStatsWindow();

            window.Owner    = this;
            window.Closing += window_Closing;
            window.Show();
            this.IsEnabled = false;
        }
示例#2
0
        private void statsMenuItem_Click(object sender, RoutedEventArgs e)
        {
            var window = new PlayerStatsWindow();

            window.Closing += window_Closing;
            window.Owner    = GetWindow(this);
            window.Show();

            this.model.StopTimer();
            this.IsEnabled = false;
        }