From 2b11e4fad850a2a639b563eaa6535b4d92b4a4d9 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 14 十一月 2024 13:44:58 +0800
Subject: [PATCH] 1.开发进度表

---
 SourceCode/Bond/BondEq/BondEqDlg.cpp |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/SourceCode/Bond/BondEq/BondEqDlg.cpp b/SourceCode/Bond/BondEq/BondEqDlg.cpp
index 62305d3..75bfce1 100644
--- a/SourceCode/Bond/BondEq/BondEqDlg.cpp
+++ b/SourceCode/Bond/BondEq/BondEqDlg.cpp
@@ -7,7 +7,7 @@
 #include "BondEqDlg.h"
 #include "afxdialogex.h"
 #include "Common.h"
-#include "Servo.h"
+#include "CBonder.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);
 }

--
Gitblit v1.9.3