Exemplo n.º 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();

        }
Exemplo n.º 2
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();
		}