Update to new RunOnIdle signatures
This commit is contained in:
parent
439725d2c6
commit
e892f7be21
2 changed files with 8 additions and 11 deletions
|
|
@ -531,20 +531,17 @@ namespace MatterHackers.MatterControl.EeProm
|
|||
{
|
||||
if (eventAdded != null)
|
||||
{
|
||||
UiThread.RunOnIdle(CallEventAdded, lineString);
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
if (lineString != null)
|
||||
{
|
||||
eventAdded(this, lineString);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CallEventAdded(object state)
|
||||
{
|
||||
StringEventArgs lineString = state as StringEventArgs;
|
||||
if (lineString != null)
|
||||
{
|
||||
eventAdded(this, lineString);
|
||||
}
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
hasPID = false;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ namespace MatterControl.Tests
|
|||
content.BackgroundColor = Color.White;
|
||||
htmlTestWindow.AddChild(content);
|
||||
htmlTestWindow.BackgroundColor = Color.Cyan;
|
||||
UiThread.RunOnIdle((state) =>
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
htmlTestWindow.ShowAsSystemWindow();
|
||||
}, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue