public void EndJob() { if (jobList.Count == 0) { mode = 0; con.firePrinterAction(Trans.T("L_IDLE")); Main.main.Invoke(Main.main.UpdateJobButtons); Main.main.printPanel.Invoke(Main.main.printPanel.SetStatusJobFinished); return; } dataComplete = true; jobStarted = DateTime.Now; con.firePrinterAction(Trans.T("L_PRINTING...")); }
public void BeginJob() { con.firePrinterAction(Trans.T("L_BUILDING_PRINT_JOB...")); //"Building print job..."); dataComplete = false; jobList.Clear(); //times.Clear(); totalLines = 0; linesSend = 0; computedPrintingTime = 0; con.lastlogprogress = -1000; maxLayer = -1; mode = 1; ana = new GCodeAnalyzer(true); con.analyzer.StartJob(); Main.main.Invoke(Main.main.UpdateJobButtons); }
public TemperatureHistory() { Main.conn.eventTempHistory += addNotify; history = new TemperatureList(); history.maxTime = DateTime.UtcNow.Ticks; history.minTime = history.maxTime - 36000000000; hourHistory = null; lists = new LinkedList <TemperatureList>(); currentHour = -1; currentHistory = history; setupColor(); /* NSUserDefaults *d = NSUserDefaults.standardUserDefaults; * NSArray *arr = [NSArray arrayWithObjects:@"tempBackgroundColor", * @"tempGridColor",@"tempAxisColor",@"tempFontColor", * @"tempExtruderColor",@"tempAvgExtruderColor", * @"tempBedColor",@"tempAvgBedColor",@"tempTargetExtruderColor",@"tempTargetBedColor", * @"tempOutputColor",@"tempAvgOutputColor", * @"tempShowExtruder",@"tempShowAverage",@"tempShowBed",@"tempAutoscroll", * @"tempShowOutput",@"tempShowTarget",@"tempZoomLevel", * @"tempAverageSeconds",@"tempExtruderWidth",@"tempAvgExtruderWidth", * @"tempTargetExtruderWidth",@"tempBedWidth",@"tempAvgBedWidth", * @"tempTargetBedWidth",@"tempAvgOutputWidth", * nil]; * bindingsArray = arr.retain; * zoomLevel = [[NSArray arrayWithObjects:[NSNumber numberWithDouble:3600], * [NSNumber numberWithDouble:1800], * [NSNumber numberWithDouble:900],[NSNumber numberWithDouble:300], * [NSNumber numberWithDouble:100],[NSNumber numberWithDouble:60], * nil] retain]; */ xpos = 100; // for(NSString *key in arr) // [d addObserver:self forKeyPath:key options:NSKeyValueObservingOptionNew context:NULL]; ToolStripMenuItem item = new ToolStripMenuItem(Trans.T("L_PAST_60_MINUTES"), null, Main.main.selectTimePeriod); item.Tag = 0; lists.AddLast(history); Main.main.timeperiodMenuItem.DropDownItems.Add(item); CurrentPos = 0; }