| | |
| | | |
| | | // test |
| | | #include "AxisSettingsDlg.h" |
| | | #include "UserManagerDlg.h" |
| | | |
| | | |
| | | #ifdef _DEBUG |
| | |
| | | |
| | | void CBondEqDlg::OnMenuFileSettings() |
| | | { |
| | | CAxisSettingsDlg axisDlg; |
| | | axisDlg.SetPLC(theApp.m_model.getBonder().getPLC("PLC(1)")); |
| | | axisDlg.DoModal(); |
| | | |
| | | /* |
| | | CSettingsDlg dlg; |
| | | dlg.DoModal(); |
| | | */ |
| | | } |
| | | |
| | | void CBondEqDlg::OnUpdateMenuFileSettings(CCmdUI* pCmdUI) |
| | |
| | | ShowLoginDlg(); |
| | | } |
| | | else if (2 == menuId) { |
| | | if (userManager.isLoggedIn()) { |
| | | userManager.logout(); |
| | | m_pTopToolbar->SetOperatorBtnText(_T("未登录")); |
| | | } |
| | | |
| | | CAxisSettingsDlg axisDlg; |
| | | axisDlg.SetPLC(theApp.m_model.getBonder().getPLC("PLC(1)")); |
| | | axisDlg.DoModal(); |
| | | // test |
| | | CUserManagerDlg dlg; |
| | | dlg.DoModal(); |
| | | } |
| | | } |
| | | |