Reduce scope to Report function
This commit is contained in:
parent
802e835f78
commit
9622dfd74e
1 changed files with 3 additions and 2 deletions
|
|
@ -36,8 +36,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
public class SliceProgressReporter : IProgress<ProgressStatus>
|
||||
{
|
||||
private double currentValue = 0;
|
||||
private double destValue = 10;
|
||||
private IProgress<ProgressStatus> reporter;
|
||||
private PrinterConfig printer;
|
||||
|
||||
|
|
@ -49,6 +47,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
public void Report(ProgressStatus progressStatus)
|
||||
{
|
||||
double currentValue = 0;
|
||||
double destValue = 10;
|
||||
|
||||
string statusText = progressStatus.Status;
|
||||
|
||||
if (GCodeFile.GetFirstNumberAfter("", statusText, ref currentValue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue