| | |
| | | #include "BondEqDlg.h" |
| | | #include "afxdialogex.h" |
| | | #include "Common.h" |
| | | #include "Servo.h" |
| | | #include "Bonder.h" |
| | | #include "SettingsDlg.h" |
| | | #include "UserManager.h" |
| | | #include "LoginDlg.h" |
| | |
| | | void CBondEqDlg::OnClose() |
| | | { |
| | | // TODO: 在此添加消息处理程序代码和/或调用默认值 |
| | | CServo& servo = theApp.m_model.getServo(); |
| | | if (servo.isRunning()) { |
| | | CBonder& bonder = theApp.m_model.getBonder(); |
| | | if (bonder.isRunning()) { |
| | | AfxMessageBox("程序和机器正在运行中,请先停止工作再退出程序!"); |
| | | return; |
| | | } |
| | |
| | | |
| | | void CBondEqDlg::OnUpdateMenuFileSettings(CCmdUI* pCmdUI) |
| | | { |
| | | pCmdUI->Enable(!theApp.m_model.getServo().isRunning()); |
| | | pCmdUI->Enable(!theApp.m_model.getBonder().isRunning()); |
| | | } |
| | | |
| | | void CBondEqDlg::OnMenuFileExit() |
| | |
| | | |
| | | void CBondEqDlg::OnUpdateMenuFileExit(CCmdUI* pCmdUI) |
| | | { |
| | | pCmdUI->Enable(!theApp.m_model.getServo().isRunning()); |
| | | pCmdUI->Enable(!theApp.m_model.getBonder().isRunning()); |
| | | } |
| | | |
| | | void CBondEqDlg::OnMenuHelpAbout() |