Exemple #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param deviceType="nm"></param>
 /// <returns></returns>
 public static TransItem Create(NameMap nm, FromDBI fromDBI, ToDBIForPs toDBI)
 {
     TransItem item = new TransItem();
     item.FromDevice = CreateFromDevice(nm.FromName, fromDBI, nm.TotalHeight);
     item.ToDevice = CreateToDevice(nm.ToName, toDBI, nm.Elvation);
     return item;
 }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param deviceType="nm"></param>
        /// <returns></returns>
        static public TransItem Create(NameMap nm, FromDBI fromDBI, ToDBIForPs toDBI)
        {
            TransItem item = new TransItem();

            item.FromDevice = CreateFromDevice(nm.FromName, fromDBI, nm.TotalHeight);
            item.ToDevice   = CreateToDevice(nm.ToName, toDBI, nm.Elvation);
            return(item);
        }
Exemple #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param deviceType="p"></param>
 /// <returns></returns>
 private static FromDevice CreateFromDevice(string name, FromDBI fromDBI, int totalHeight)
 {
     FromDevice fd = new FromDevice(totalHeight);
     fd.DBI = fromDBI;
     //fd.Name = name;
     //fd.ID = fromDBI.ReadFromDeviceID(name);
     return fd;
 }
Exemple #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param deviceType="p"></param>
        /// <returns></returns>
        private static FromDevice CreateFromDevice(string name, FromDBI fromDBI, int totalHeight)
        {
            FromDevice fd = new FromDevice(totalHeight);

            fd.DBI  = fromDBI;
            fd.Name = name;
            fd.ID   = fromDBI.ReadFromDeviceID(name);
            return(fd);
        }