private void showStatsButton_Click(object sender, MouseEventArgs e) { var window = new PlayerStatsWindow(); window.Owner = this; window.Closing += window_Closing; window.Show(); this.IsEnabled = false; }
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; }