Esempio n. 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 private static ToDevice CreateToDevice(string name, ToDBI toDBI, float elvation)
 {
     ToDevice to = new ToDevice();
     to.DBI = toDBI;
     to.Name = name;
     to.ID = toDBI.ReadToDeviceID(name);
     to.ComAdr = toDBI.ReadToDeviceComAdr(to.ID);
     to.Elvation = elvation;
     return to;
 }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        private static ToDevice CreateToDevice(string name, ToDBI toDBI, float elvation)
        {
            ToDevice to = new ToDevice();

            to.DBI      = toDBI;
            to.Name     = name;
            to.ID       = toDBI.ReadToDeviceID(name);
            to.ComAdr   = toDBI.ReadToDeviceComAdr(to.ID);
            to.Elvation = elvation;
            return(to);
        }