initial commit with first really early version

This commit is contained in:
2022-10-06 09:09:25 +02:00
commit 289747f0e4
18 changed files with 1270 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace NonoGramme
{
public partial class Form1 : Form
{
const int UI_BORDER = 30;
public Form1()
{
InitializeComponent();
nonogramme1.NewGame(new Size(5,5));
}
private void Form1_Load(object sender, EventArgs e)
{
ScaleUi();
}
private void Form1_Resize(object sender, EventArgs e)
{
ScaleUi();
}
private void ScaleUi()
{
if (ClientSize.Width > ClientSize.Height)
{
nonogramme1.Size = new Size(ClientSize.Height, ClientSize.Height - UI_BORDER);
}
else
{
nonogramme1.Size = new Size(ClientSize.Width - UI_BORDER, ClientSize.Width);
}
nonogramme1.Refresh();
}
}
}