using OTSModelSharp.ResourceManage; using System.Collections.Generic; namespace OTSDataType { public class CPropItem { public CPropItem() { }// constructor public CPropItem(CPropItem p) { }// copy constructor // copy constructor public bool equals(CPropItem p) { return true; } // set sample parameters public void SetSmplParameter(int OTS_SAMPLE_PROP_GRID_ITEM_GROUPS, OTS_SAMPLE_PROP_GRID_ITEMS a_nSmplId, OTS_ITEM_TYPES a_nType, bool a_bReadOnly, bool a_bShow) { int sampleTitle = ResourceID.IDS_SAMPLE_TITLE_FIRST; int sampleDES = ResourceID.IDS_SAMPLE_DES_FIRST; //获取SourceGrid 列表与描述 m_strName = ResourceData.GetSourceColNameString(OTS_SAMPLE_PROP_GRID_ITEM_GROUPS, (sampleTitle + (int)a_nSmplId)); m_strDescription = ResourceData.GetSourceColNameString(OTS_SAMPLE_PROP_GRID_ITEM_GROUPS, (sampleDES + (int)a_nSmplId)); m_nSmplId = a_nSmplId; m_nType = a_nType; m_bReadOnly = a_bReadOnly; m_bShow = a_bShow; } // name public string GetName() { return m_strName; } public void SetName(string a_strName) { m_strName = a_strName; } // description public string GetDescription() { return m_strDescription; } public void SetDescription(string a_strDescription) { m_strDescription = a_strDescription; } // sample item Id public OTS_SAMPLE_PROP_GRID_ITEMS GetSmplItemId() { return m_nSmplId; } public void SetSmplItemId(OTS_SAMPLE_PROP_GRID_ITEMS a_nSmplId) { m_nSmplId = a_nSmplId; } // item type public OTS_ITEM_TYPES GetTypeId() { return m_nType; } public void SetTypeId(OTS_ITEM_TYPES a_nType) { m_nType = a_nType; } // read only flag public bool IsReadOnly() { return m_bReadOnly; } public void SetReadOnly(bool a_bReadOnly) { m_bReadOnly = a_bReadOnly; } // cleanup public void Cleanup() { } // initialization public void Init() { } // duplication public void Duplicate(CPropItem a_oSource) { } // name string m_strName; // description string m_strDescription; // sample item Id OTS_SAMPLE_PROP_GRID_ITEMS m_nSmplId; // item type OTS_ITEM_TYPES m_nType; // read only flag bool m_bReadOnly; // show flag, this is used for interface to sure if this propetry should be show, it is controlled by C++ now. bool m_bShow; }; }