public TourneyView() { InitializeComponent(); Config = TourneyConfig.ReadFromFile(); GV_GameView.MatchChanging += OnMatchChanging; }
private void BTN_GoToResults_Click(object sender, RoutedEventArgs e) { if (CurrentGame.GameState != GameState.Finished) { MessageBox.Show("You must submit the results for this match before continuing", "Submit Results", MessageBoxButton.OK, MessageBoxImage.Exclamation); } else { ResultsView results = new ResultsView(TourneyView.Tourney, TourneyConfig.ReadFromFile()); results.Owner = Application.Current.MainWindow; results.Show(); } }