예제 #1
0
        public TourneyView()
        {
            InitializeComponent();

            Config = TourneyConfig.ReadFromFile();

            GV_GameView.MatchChanging += OnMatchChanging;
        }
예제 #2
0
 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();
     }
 }