常用方法
常用方法
常用方法
常用方法
private void GamePage_OnLoaded(object sender, RoutedEventArgs e) { Application.Current.MainWindow.KeyDown += GamePage_OnKeyDown; Application.Current.MainWindow.SizeChanged += MainWindowOnSizeChanged; _game = new Game.Game(_size, GameCanvas, _updateAfterMoveDelegate); _game.PlayWithComputer(_withComputer); _game.Start(); ResultMessage.Visibility = Visibility.Collapsed; }