Archived
Clean-up
This commit is contained in:
1 parent
adeb97dbb5
commit
7722340560
13 files changed
+70
-98
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user