LAPTOP-T815PCOQ\25526
2024-11-14 b4d6dbfab5a2113e1a2f6fc067bfd0ce85b81e55
SourceCode/Bond/BondEq/BondEqDlg.cpp
@@ -7,7 +7,7 @@
#include "BondEqDlg.h"
#include "afxdialogex.h"
#include "Common.h"
#include "Servo.h"
#include "Bonder.h"
#include "SettingsDlg.h"
#include "UserManager.h"
#include "LoginDlg.h"
@@ -212,7 +212,6 @@
   // Homeҳ
   m_pHomeDialog = CreateHomeDlg();
   ShowWindow(SW_SHOWMAXIMIZED);
   SetTimer(2, 1000, nullptr);
   InitRxWindows();
@@ -279,8 +278,8 @@
void CBondEqDlg::OnClose()
{
   // TODO: 在此添加消息处理程序代码和/或调用默认值
   CServo& servo = theApp.m_model.getServo();
   if (servo.isRunning()) {
   CBonder& bonder = theApp.m_model.getBonder();
   if (bonder.isRunning()) {
      AfxMessageBox("程序和机器正在运行中,请先停止工作再退出程序!");
      return;
   }
@@ -453,7 +452,7 @@
void CBondEqDlg::OnUpdateMenuFileSettings(CCmdUI* pCmdUI)
{
   pCmdUI->Enable(!theApp.m_model.getServo().isRunning());
   pCmdUI->Enable(!theApp.m_model.getBonder().isRunning());
}
void CBondEqDlg::OnMenuFileExit()
@@ -463,7 +462,7 @@
void CBondEqDlg::OnUpdateMenuFileExit(CCmdUI* pCmdUI)
{
   pCmdUI->Enable(!theApp.m_model.getServo().isRunning());
   pCmdUI->Enable(!theApp.m_model.getBonder().isRunning());
}
void CBondEqDlg::OnMenuHelpAbout()
@@ -578,10 +577,7 @@
         }
      }
   }
   else if (2 == nIDEvent) {
      KillTimer(2);
      theApp.m_model.createRemoteEqs();
   }
   CDialogEx::OnTimer(nIDEvent);
}