void exposureTimer_Tick(object sender, EventArgs e) { if (currentLine >= bmp.Width) { exposureReset(); } else { byte[] data = getLineFromBmp(currentLine); byte[] tdata = machineData.translateLine(data); comHandler.sendData(tdata); comHandler.sendStepper(-1); lineNumericUpDown.Value = currentLine; currentLine++; elapsed_time += exposureTimer.Interval; setTimerLabel(elapsed_time / 1000); } }
private void stepperOffButton_Click(object sender, EventArgs e) { comHandler.sendStepper(-3); }