예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override IDeviceSource[] OnGetDeviceSources()
        {
            List <IDeviceSource> list = new List <IDeviceSource>();

            DataTable tbl = _dbi.ExecuteDataTable(GetSql());

            foreach (DataRow row in tbl.Rows)
            {
                //SimpleDeviceSource s = new SimpleDeviceSource(row);
                //Scl6Source this1 = new Scl6Source(row);
                SimpleDeviceSource item = new SimpleDeviceSource(row);
                list.Add(item);
            }
            return(list.ToArray());
        }
예제 #2
0
파일: SimpleDPU.cs 프로젝트: hkiaipc/C3
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override IDeviceSource[] OnGetDeviceSources()
        {
            List<IDeviceSource> list = new List<IDeviceSource>();

            DataTable tbl = _dbi.ExecuteDataTable (GetSql());
            foreach (DataRow row in tbl.Rows)
            {
                //SimpleDeviceSource s = new SimpleDeviceSource(row);
                //Scl6Source this1 = new Scl6Source(row);
                SimpleDeviceSource item = new SimpleDeviceSource(row);
                list.Add(item);
            }
            return list.ToArray();
        }