コード例 #1
0
ファイル: ItemFactory.cs プロジェクト: hkiaipc/yh
        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        /// <returns></returns>
        private Item CreateRainItem(DataRow row)
        {
            Item item = new RainItem ();
            string fromName = row["站点名称"].ToString();
            string fromID = row["站点编号"].ToString();
            string toName;
            int toStationID;
            int toDeviceID;

            _todbi.GetToInfo(fromName, CQRain, out toName, out toStationID, out toDeviceID);

            item.FromName = fromName;
            item.FromID = fromID;
            item.ToName = toName;
            item.ToStationID = toStationID;
            item.ToDeviceID = toDeviceID;

            return item;
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="row"></param>
        /// <returns></returns>
        private Item CreateRainItem(DataRow row)
        {
            Item   item     = new RainItem();
            string fromName = row["站点名称"].ToString();
            string fromID   = row["站点编号"].ToString();
            string toName;
            int    toStationID;
            int    toDeviceID;

            _todbi.GetToInfo(fromName, CQRain, out toName, out toStationID, out toDeviceID);

            item.FromName    = fromName;
            item.FromID      = fromID;
            item.ToName      = toName;
            item.ToStationID = toStationID;
            item.ToDeviceID  = toDeviceID;

            return(item);
        }