18 lines
No EOL
428 B
C#
18 lines
No EOL
428 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();
|
|
new GameModel((int)Width, (int)Height, ImageControl);
|
|
}
|
|
|
|
[DllImport("kernel32.dll")]
|
|
private static extern bool AttachConsole(int dwProcessId);
|
|
} |