Reduce Print/Slice helper method couplings to PrintItemWrapper
This commit is contained in:
parent
8a559f29d4
commit
46188d1eea
12 changed files with 79 additions and 58 deletions
|
|
@ -280,8 +280,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
UiThread.RunOnIdle(async () =>
|
||||
{
|
||||
var context = printer.Bed.EditContext;
|
||||
await ApplicationController.Instance.PrintPart(
|
||||
printer.Bed.printItem,
|
||||
context.PartFilePath,
|
||||
context.GCodeFilePath,
|
||||
context.SourceItem.Name,
|
||||
printer,
|
||||
printerTabPage.view3DWidget,
|
||||
null);
|
||||
|
|
@ -298,8 +301,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
UiThread.RunOnIdle(async () =>
|
||||
{
|
||||
var context = printer.Bed.EditContext;
|
||||
await ApplicationController.Instance.PrintPart(
|
||||
printer.Bed.printItem,
|
||||
context.PartFilePath,
|
||||
context.GCodeFilePath,
|
||||
context.SourceItem.Name,
|
||||
printer,
|
||||
printerTabPage.view3DWidget,
|
||||
null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue