Update to new RunOnIdle signatures

This commit is contained in:
John Lewin 2017-12-23 06:56:05 -08:00
parent 439725d2c6
commit e892f7be21
2 changed files with 8 additions and 11 deletions

View file

@ -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;

View file

@ -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);