| | |
| | | |
| | | SERVO::CGlass* pGlass = (SERVO::CGlass*)pSlot->getContext(); |
| | | if (pGlass != nullptr) { |
| | | m_listCtrl.SetItemText(index, 3, pGlass->getID().c_str()); |
| | | CString strText; |
| | | if (pGlass->getType() == SERVO::MaterialsType::G1) { |
| | | strText.Format(_T("(G1)%s"), pGlass->getID().c_str()); |
| | | } |
| | | else if (pGlass->getType() == SERVO::MaterialsType::G2) { |
| | | strText.Format(_T("(G2)%s"), pGlass->getID().c_str()); |
| | | } |
| | | else { |
| | | strText.Format(_T("(%s"), pGlass->getID().c_str()); |
| | | } |
| | | m_listCtrl.SetItemText(index, 3, strText); |
| | | SERVO::CGlass* pBuddy = pGlass->getBuddy(); |
| | | if (pBuddy != nullptr) { |
| | | m_listCtrl.SetItemText(index, 4, pBuddy->getID().c_str()); |