Added partial file import and Hints calculation
This commit is contained in:
+6
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user