Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 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));
         }
     }
 }