LAPTOP-SNT8I5JK\Boounion
2024-11-13 fb8a51bc09f2648034ff661f19415c5670e57e31
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"
@@ -279,8 +279,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 +453,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 +463,7 @@
void CBondEqDlg::OnUpdateMenuFileExit(CCmdUI* pCmdUI)
{
   pCmdUI->Enable(!theApp.m_model.getServo().isRunning());
   pCmdUI->Enable(!theApp.m_model.getBonder().isRunning());
}
void CBondEqDlg::OnMenuHelpAbout()