public void ResumeMove() { m_isFromPause = true; m_dripStatus = DripStatus.Moving; m_moveThread = new Thread(new ThreadStart(DripThread)); m_moveThread.Start(); }
private void OnDripFinished() { m_dripStatus = DripStatus.Idle; this.Invoke(new DelDripFinished(delegate { UpdateButtons(); })); }
public void StopMove() { DripStatus preMode = m_dripStatus; m_dripStatus = DripStatus.Idle; m_selectedTubes.Clear(); VsmdController.GetVsmdController().Stop(); if (preMode == DripStatus.PauseMove) { AfterMove(); } }
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(); } } }
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); }
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(); }
public void PauseMove() { CallJS("JsExecutor.pauseMove()"); m_dripStatus = DripStatus.PauseMove; }
private void btnStop_Click(object sender, EventArgs e) { m_externalObj.StopMove(); m_dripStatus = DripStatus.Idle; UpdateButtons(); }
private void btnStart_Click(object sender, EventArgs e) { m_externalObj.Move(); m_dripStatus = DripStatus.Moving; UpdateButtons(); }