Fixed the bug where some files would not work, and now you can click on the tiles
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user