private void RestoreCheckpoint() { if (Main.conn.connector.IsJobRunning()) { MessageBox.Show(Trans.T("L_CHECKPOINT_STOP_JOB_BEFORE_RESTORING_POINT")); } else { this.chk = (PrintingCheckpoint)checkpoints.GetCurrent(); if (this.chk != null) { chk.RestoreState(new PrinterConnectionGCodeExecutor(Main.conn, false)); } this.Close(); } }
private void GoToCheckpointPosition() { this.chk = (PrintingCheckpoint)checkpoints.GetCurrent(); if (chk != null) { if (Main.conn.connector.IsJobRunning()) { MessageBox.Show(Trans.T("L_CHECKPOINT_STOP_JOB_BEFORE_GOING_TO_POSITION")); } else { this.chk.RestorePosition(new RunNowGCodeExecutor(Main.conn)); } } }