コード例 #1
0
ファイル: GXCategory.cs プロジェクト: giapdangle/Gurux.Device
 /// <summary>
 /// Override this to made changes before category load.
 /// </summary>
 protected override void OnDeserializing(bool designMode)
 {
     Properties = new GXPropertyCollection();
     Statistics = new GXCategoryStatistics();
 }
コード例 #2
0
ファイル: GXCategory.cs プロジェクト: giapdangle/Gurux.Device
 /// <summary>
 /// Initializes a new instance of the GXCategory class.
 /// </summary>
 public GXCategory(string name)
 {
     if (name != null)
     {
         Name = name;
     }
     Properties = new GXPropertyCollection();
     Statistics = new GXCategoryStatistics();
 }
コード例 #3
0
ファイル: GXTable.cs プロジェクト: giapdangle/Gurux.Device
		/// <summary>
		/// Initializes a new instance of the GXTable class.
		/// </summary>
		public GXTable()
		{
            TransactionDelay = -1;
            AccessMode = Gurux.Device.AccessMode.Read;
            Columns = new GXPropertyCollection();
            Statistics = new GXTableStatistics();
			m_DeviceValues = new List<object[]>();
			m_UIValues = new List<object[]>();
		}
コード例 #4
0
ファイル: GXTable.cs プロジェクト: giapdangle/Gurux.Device
 /// <summary>
 /// Override this to made changes before property load.
 /// </summary>
 protected override void OnDeserializing(bool designMode)
 {
     TransactionDelay = -1;
     AccessMode = Gurux.Device.AccessMode.ReadWrite;
     Columns = new GXPropertyCollection();
     Statistics = new GXTableStatistics();
     m_DeviceValues = new List<object[]>();
     m_UIValues = new List<object[]>();
 }
コード例 #5
0
 GXDLMSProperty FindByLN(GXPropertyCollection properties, Type type, string ln)
 {
     foreach (GXDLMSProperty it in properties)
     {
         if ((type == null || it.GetType() == type) && it.LogicalName == ln)
         {
             return it;
         }
     }
     return null;
 }
コード例 #6
0
 private void ShowAvailableProperties(GXPropertyCollection props, TreeNode root)
 {
     if (Gurux.DeviceSuite.Properties.Settings.Default.DeviceTreeShowProperties)
     {
         foreach (GXProperty prop in props)
         {
             ShowAvailableProperty(prop, root);
         }
     }
 }