Example #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="dbi"></param>
 public DBHardwareBuilder(DBIBase dbi)
 {
     if (dbi == null)
     {
         throw new ArgumentNullException("dbi");
     }
     this._dbi = dbi;
 }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="dbi"></param>
        public SimpleDevicePersister(Xdgk.Common.DBIBase dbi)
        {
            if (dbi == null)
            {
                throw new ArgumentNullException("dbi");
            }

            this._dbi = dbi;
        }
Example #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="dbi"></param>
        public SimpleDevicePersister(Xdgk.Common.DBIBase dbi)
        {
            if (dbi == null)
            {
                throw new ArgumentNullException("dbi");
            }

            this._dbi = dbi;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="communiSoft"></param>
        /// <param name="dbiBase"></param>
        /// <param name="fromStation"></param>
        /// <param name="fromDevice"></param>
        /// <param name="fromOpera"></param>
        /// <param name="fromReceivePart"></param>
        /// <param name="fromAddress"></param>
        /// <param name="pr"></param>
        /// <returns></returns>
        public bool ProcessParseResult(CommuniSoft communiSoft, DBIBase dbiBase, string fromStation,
            string fromDevice, string fromOpera, string fromReceivePart, int fromAddress, ParseResult pr)
        {
            foreach (IParseResultProcessor p in IParseResultProcessorCollection)
            {
                if (p.ForDevice == fromDevice)
                {
                    p.DBIBase = dbiBase;
                    p.FromStation = fromStation;
                    p.FromDevice = fromDevice;
                    p.FromOpera = fromOpera;
                    p.FromAddress = fromAddress;
                    p.FromReceivePart = fromReceivePart;

                    p.ProcessParseResult(communiSoft, pr);
                    return true;
                }
            }
            return false;
        }
Example #5
0
File: Class1.cs Project: hkiaipc/C3
 public CrlgxlPersister(DBIBase dbi)
     : base(dbi)
 {
 }
Example #6
0
File: Class1.cs Project: hkiaipc/C3
 public Scl6Persister(DBIBase dbi)
     : base(dbi)
 {
 }
Example #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="connString"></param>
 public DBIBase(string connString)
 {
     this._connString = connString;
     _DBIBase         = this;
 }
Example #8
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="connString"></param>
 public DBIBase(string connString)
 {
     this._connString = connString;
     _DBIBase = this;
 }
Example #9
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="dbi"></param>
        /// <param name="deviceType"></param>
        public SimpleDeviceSourceProvider(DBIBase dbi, Type deviceType)
        {
            if (dbi == null)
            {
                throw new ArgumentNullException("dbi");
            }

            if (deviceType == null)
            {
                throw new ArgumentNullException("deviceType");
            }

            this._dbi = dbi;
            this._deviceType = deviceType;
        }
Example #10
0
File: Class1.cs Project: hkiaipc/C3
 public Xd100ePersister(DBIBase dbi)
     : base(dbi)
 {
 }