|
|
@ -2,7 +2,7 @@
|
|
|
|
#include "Propertie.h"
|
|
|
|
#include "Propertie.h"
|
|
|
|
#include "LogMgr.h"
|
|
|
|
#include "LogMgr.h"
|
|
|
|
#include "FileMgr.h"
|
|
|
|
#include "FileMgr.h"
|
|
|
|
|
|
|
|
#include "PropertieMgr.h"
|
|
|
|
CPropertie::CPropertie()
|
|
|
|
CPropertie::CPropertie()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_pVal = NULL;
|
|
|
|
m_pVal = NULL;
|
|
|
@ -41,6 +41,18 @@ void CPropertie::PropertyChangeVal(const COleVariant &OleVar)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_pModule->OnPropertyChanged();
|
|
|
|
m_pModule->OnPropertyChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
auto & PropertieValMap = gDevicePropertieMgr.m_PropertieValMap;
|
|
|
|
|
|
|
|
if (PropertieValMap.size())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
for (auto & item : PropertieValMap)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if ((item.second)->m_pVal == this->m_pVal)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
(item.first)->SetValue(OleVar);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void CPropertie::WriteRead(bool bRead)
|
|
|
|
void CPropertie::WriteRead(bool bRead)
|
|
|
|
{
|
|
|
|
{
|
|
|
|