Added partial file import and Hints calculation

This commit is contained in:
2022-10-13 10:08:13 +02:00
parent 9b255c8ed9
commit d96a793344
3 changed files with 87 additions and 18 deletions
+6 -2
View File
@@ -25,7 +25,7 @@ namespace NonoGramme
private void NewGame()
{
nonogramme1.NewRandomGame(new Size(5, 5));
nonogramme1.Refresh();
RefreshUi();
}
private void Form1_Load(object sender, EventArgs e)
@@ -47,9 +47,12 @@ namespace NonoGramme
{
nonogramme1.Size = new Size(ClientSize.Width - UI_BORDER, ClientSize.Width);
}
RefreshUi();
}
private void RefreshUi()
{
nonogramme1.Refresh();
}
private void button1_Click(object sender, EventArgs e)
{
FolderBrowserDialog dialog = new FolderBrowserDialog();
@@ -80,6 +83,7 @@ namespace NonoGramme
{
selectedNonoGram = selectedFile;
nonogramme1.LoadNewGame(selectedNonoGram);
RefreshUi();
}
}
}