예제 #1
0
        /// <summary>
        /// Override this to made changes before device load.
        /// </summary>
        /// <remarks>
        /// Remember to call base.
        /// </remarks>
        protected override void OnDeserializing(bool designMode)
        {
            Keepalive = new GXKeepalive(this);
            this.GXClient = new GXClient();
            Categories = new GXCategoryCollection();
            Tables = new GXTableCollection();
            m_AllowedMediaTypes = new GXMediaTypeCollection(this);
            m_Statistics = new GXDeviceStatistics();
            m_sync = new object();
            m_transactionsync = new object();

        }
예제 #2
0
 private void ShowAvailableTables(GXTableCollection tables, TreeNode root)
 {
     if (Gurux.DeviceSuite.Properties.Settings.Default.DeviceTreeShowTables)
     {
         foreach (GXTable table in tables)
         {
             ShowAvailableTable(table, root);
         }
     }
 }
예제 #3
0
		/// <summary>
		/// Initializes a new instance of the GXDevice class.
		/// </summary>        
		public GXDevice()
		{
			Keepalive = new GXKeepalive(this);
			this.GXClient = new GXClient();
			Categories = new GXCategoryCollection();
			Tables = new GXTableCollection();
			m_AllowedMediaTypes = new GXMediaTypeCollection(this);
			m_sync = new object();
			m_transactionsync = new object();
		}