Fixed the bug where some files would not work, and now you can click on the tiles

This commit is contained in:
2022-10-17 09:23:47 +02:00
parent f1df4162a3
commit 24af23a3a2
5 changed files with 111 additions and 18 deletions
+12
View File
@@ -67,6 +67,7 @@ namespace NonoGramme
if (Directory.Exists(selectedFolder))
{
lsbFiles.Items.Clear();
string[] nonFiles = Directory.GetFiles(selectedFolder, "*.non");
foreach (string file in nonFiles)
@@ -86,5 +87,16 @@ namespace NonoGramme
RefreshUi();
}
}
private void nonogramme1_Click(object sender, EventArgs e)
{
//The problem with click is that it is called 2 times because it detects mouse down AND ouse up
}
private void nonogramme1_MouseDown(object sender, MouseEventArgs e)
{
nonogramme1.CursorClick(nonogramme1.PointToClient(MousePosition));
RefreshUi();
}
}
}