public void PauseScanning_PauseMidway_FirstVerticeReturned()
        {
            List <URPose> path = new List <URPose>();

            path.Add(new URPose(0, 0, 0, 0, 0, 0));
            path.Add(new URPose(1, 1, 1, 0, 0, 0));
            uut.ProcessPath(path);
            Thread.Sleep(feeder.SleepTime / 2);
            uut.PauseScanning();
            Assert.AreEqual(0, feeder.CurrentPose.Xpose);
            Assert.AreEqual(0, feeder.CurrentPose.Ypose);
            Assert.AreEqual(0, feeder.CurrentPose.Zpose);
        }
예제 #2
0
 private void btnPause_Click(object sender, RoutedEventArgs e)
 {
     master.PauseScanning();
     if (paused)
     {
         paused              = false;
         btnPause.Content    = "Pause";
         btnPause.Background = new SolidColorBrush(PauseColor);
     }
     else
     {
         paused              = true;
         btnPause.Content    = "Resume";
         btnPause.Background = new SolidColorBrush(ResumeColor);
     }
 }