This commit is contained in:
Ray committed 2020-05-10 11:34:45 +01:00
1 parent adeb97dbb5
commit 7722340560
13 files changed
+70 -98

No files matched your search

+13 -1
View File
@@ -106,7 +106,19 @@ namespace RyzStudio.Windows.Forms
[Browsable(false)]
public Style StyleDefault { get; set; } = new Style();
public void PerformClick() => this.OnClick(null);
public void PerformClick()
{
if (this.InvokeRequired)
{
this.Invoke(new MethodInvoker(() => {
this.OnClick(null);
}));
}
else
{
this.OnClick(null);
}
}
}
}