Пример #1
0
 public void ResumeMove()
 {
     m_isFromPause = true;
     m_dripStatus  = DripStatus.Moving;
     m_moveThread  = new Thread(new ThreadStart(DripThread));
     m_moveThread.Start();
 }
Пример #2
0
 private void OnDripFinished()
 {
     m_dripStatus = DripStatus.Idle;
     this.Invoke(new DelDripFinished(delegate
     {
         UpdateButtons();
     }));
 }
Пример #3
0
        public void StopMove()
        {
            DripStatus preMode = m_dripStatus;

            m_dripStatus = DripStatus.Idle;
            m_selectedTubes.Clear();
            VsmdController.GetVsmdController().Stop();
            if (preMode == DripStatus.PauseMove)
            {
                AfterMove();
            }
        }
Пример #4
0
        private void AfterMove()
        {
            if (m_dripStatus != DripStatus.PauseMove)
            {
                CallJS("JsExecutor.afterMove();");

                m_isFromPause = false;

                m_dripStatus = DripStatus.Idle;
                m_selectedTubes.Clear();
                if (onDripFinished != null)
                {
                    onDripFinished();
                }
            }
        }
Пример #5
0
        private async Task <bool> BeforeMove()
        {
            m_dripStatus = DripStatus.Moving;
            CallJS("JsExecutor.beforeMove();");
            if (!m_isFromPause)
            {
                VsmdController vsmdController = VsmdController.GetVsmdController();
                await vsmdController.ZeroStart(VsmdAxis.X);

                await vsmdController.ZeroStart(VsmdAxis.Y);

                await vsmdController.ZeroStart(VsmdAxis.Z);
            }

            return(true);
        }
Пример #6
0
 private void btnPause_Click(object sender, EventArgs e)
 {
     if (m_dripStatus == DripStatus.Moving)
     {
         m_externalObj.PauseMove();
         m_dripStatus  = DripStatus.PauseMove;
         btnPause.Text = "继续滴液";
     }
     else if (m_dripStatus == DripStatus.PauseMove)
     {
         m_externalObj.ResumeMove();
         m_dripStatus  = DripStatus.Moving;
         btnPause.Text = "暂停滴液";
     }
     UpdateButtons();
 }
Пример #7
0
 public void PauseMove()
 {
     CallJS("JsExecutor.pauseMove()");
     m_dripStatus = DripStatus.PauseMove;
 }
Пример #8
0
 private void btnStop_Click(object sender, EventArgs e)
 {
     m_externalObj.StopMove();
     m_dripStatus = DripStatus.Idle;
     UpdateButtons();
 }
Пример #9
0
 private void btnStart_Click(object sender, EventArgs e)
 {
     m_externalObj.Move();
     m_dripStatus = DripStatus.Moving;
     UpdateButtons();
 }