Made it possible to start a gcode files from sync

This commit is contained in:
Lars Brubaker 2016-09-22 15:36:11 -07:00
parent 04002560a5
commit a6fc014a0c
2 changed files with 10 additions and 7 deletions

View file

@ -484,7 +484,7 @@ namespace MatterHackers.MatterControl.ActionBar
private void onReprintButton_Click(object sender, EventArgs mouseEvent)
{
UiThread.RunOnIdle(PrinterConnectionAndCommunication.Instance.PrintActivePartIfPossible);
UiThread.RunOnIdle(() => PrinterConnectionAndCommunication.Instance.PrintActivePartIfPossible());
}
private void onSkipButton_Click(object sender, EventArgs mouseEvent)
@ -497,7 +497,7 @@ namespace MatterHackers.MatterControl.ActionBar
private void onStartButton_Click(object sender, EventArgs mouseEvent)
{
UiThread.RunOnIdle(PrinterConnectionAndCommunication.Instance.PrintActivePartIfPossible);
UiThread.RunOnIdle(() => PrinterConnectionAndCommunication.Instance.PrintActivePartIfPossible());
}
private void onStateChanged(object sender, EventArgs e)