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

18 lines
428 B
C#
Raw Normal View History

2022-04-06 11:15:55 +02:00
using System.Runtime.InteropServices;
using System.Windows;
2022-04-06 11:30:44 +02:00
using Tetris.ViewsModels;
2022-04-06 11:15:55 +02:00
namespace Tetris.Views;
public partial class GameWindow : Window
{
public GameWindow()
{
AttachConsole(-1);
InitializeComponent();
2022-04-06 11:30:44 +02:00
new GameModel((int)Width, (int)Height, ImageControl);
2022-04-06 11:15:55 +02:00
}
[DllImport("kernel32.dll")]
private static extern bool AttachConsole(int dwProcessId);
}