Kaynağa Gözat

split CPropItem.cs into two class

gsp 3 yıl önce
ebeveyn
işleme
a54a7688b5

+ 1 - 1
OTSIncAMeasureApp/0-OTSModel/OTSDataType/COTSSample.cs

@@ -1287,7 +1287,7 @@ namespace OTSDataType
                                 // total particle area
                                 poPropItem = new CPropItem();
                                 nItemId = OTS_SAMPLE_PROP_GRID_ITEMS.TOTAL_PARTICLE_AREA;
-                                poPropItem.SetSmplParameter(modelResource, nItemId, OTS_ITEM_TYPES.DOUBLE, true, true);
+                                poPropItem.SetSmplParameter(modelResource, nItemId, OTS_ITEM_TYPES.INT, true, true);
                                 a_listPropItems.Add(poPropItem);
                             }
                         }

+ 59 - 0
OTSIncAMeasureApp/0-OTSModel/OTSDataType/CPropItemGrp.cs

@@ -0,0 +1,59 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using OTSModelSharp.ResourceManage;
+namespace OTSDataType
+{
+	public class CPropItemGrp
+	{
+
+
+		public CPropItemGrp()
+		{ }// constructor
+		public CPropItemGrp(CPropItemGrp g)
+		{ }// copy constructor
+
+
+		// group name 
+		public string GetName() { return m_strName; }
+		public void SetName(string a_strName) { m_strName = a_strName; }
+
+		// items group Id
+		public OTS_SAMPLE_PROP_GRID_ITEM_GROUPS GetGroupId() { return m_nId; }
+		public void SetGroupId(OTS_SAMPLE_PROP_GRID_ITEM_GROUPS a_nId) { m_nId = a_nId; }
+
+		// items list
+		public List<CPropItem> GetItemsList() { return m_listPropItems; }
+		public void SetItemsList(List<CPropItem> a_listPropItems)
+		{
+			m_listPropItems = a_listPropItems;
+		}
+		public void GetItemsIdRange(OTS_SAMPLE_PROP_GRID_ITEMS a_nItemIdMin, OTS_SAMPLE_PROP_GRID_ITEMS a_nItemIdMax)
+		{ }
+
+
+
+		// cleanup 
+		public void Cleanup()
+		{ }
+
+		// initialization
+		public void Init()
+		{ }
+
+		// duplication
+		public void Duplicate(CPropItemGrp a_oSource)
+		{ }
+
+		// group name 
+		string m_strName;
+
+		// group id
+		OTS_SAMPLE_PROP_GRID_ITEM_GROUPS m_nId;
+
+		// items list
+		List<CPropItem> m_listPropItems;
+	};
+}