public MainWindow() { this.DataContext = new GameCoordinator(); InitializeComponent(); MCSTPlayer.ReadTree(filename2); MCTS2v2Player.ReadTree(filename); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { //MultipleTree.SaveTree(MonteCarloTreeSearchPlayer.filename); if (MessageBox.Show("Czy chcesz zapisać drzewka?", "Uwaga", MessageBoxButton.YesNo) == MessageBoxResult.Yes) { MCSTPlayer.SaveTree(filename2); MCTS2v2Player.SaveTree(filename); } }