Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Tetris/Views/GameWindow.xaml.cs
2022-04-07 15:30:48 +02:00

18 lines
No EOL
409 B
C#

using System.Runtime.InteropServices;
using System.Windows;
using Tetris.ViewsModels;
namespace Tetris.Views;
public partial class GameWindow : Window
{
public GameWindow()
{
AttachConsole(-1);
InitializeComponent();
DataContext = new GameViewModel();
}
[DllImport("kernel32.dll")]
private static extern bool AttachConsole(int dwProcessId);
}