Exemple #1
0
 /// <summary>
 /// �G�D������O�غc��
 /// </summary>
 /// <param name="tunnelName">���G�D�s��</param>
 /// <param name="tunnelName">���G�D�W��</param>
 /// <param name="direction">���G�D��V</param>        
 /// <param name="startMileage">���G�D�_�I���{</param>
 /// <param name="endMileage">���G�D���I���{</param>
 /// <param name="upstreamTunnel">�W���G�D</param>
 public Tunnel(string id, string tunnelName, Line line, string direction, int startMileage, int endMileage, Tunnel upstreamTunnel)
 {
     this.id = id;
     this.startMileage = startMileage;
     this.endMileage = endMileage;
     this.name = tunnelName;
     this.direction = direction;
     this.upstreamLocation = upstreamTunnel;
     this.line = line;
 }
Exemple #2
0
 object dbcmd_GetReaderData(DataType type, object reader)
 {
     if (type == DataType.Tunnel)
     {
         System.Data.Odbc.OdbcDataReader dr = (System.Data.Odbc.OdbcDataReader)reader;
         Tunnel tunnel = null;
         Line line = new Line(dr[4].ToString(), dr[5].ToString(), Convert.ToInt32(dr[8]), Convert.ToInt32(dr[11]));
         tunnel = new Tunnel(dr[1].ToString(), dr[3].ToString(), line, dr[7].ToString(), Convert.ToInt32(dr[9]), Convert.ToInt32(dr[10]), beforeTunnel);
         beforeTunnel = tunnel;
         tunList.Add(tunnel);
     }
     return null;
 }
Exemple #3
0
 /// <summary>
 /// �G�D������O�غc��
 /// </summary>
 /// <param name="tunnelName">���G�D�s��</param>
 /// <param name="tunnelName">���G�D�W��</param>
 /// <param name="direction">���G�D��V</param>        
 /// <param name="startMileage">���G�D�_�I���{</param>
 /// <param name="endMileage">���G�D���I���{</param>
 /// <param name="upstreamTunnel">�W���G�D</param>
 public Tunnel(string id, string tunnelName, Line line, string direction, int startMileage, int endMileage, Tunnel upstreamTunnel)
 {
     this.id = id;
     this.startMileage = startMileage;
     this.endMileage = endMileage;
     this.name = tunnelName;
     this.direction = direction;
     if (upstreamTunnel == null || !upstreamTunnel.Line.Equals(line))
     {
         this.upstreamLocation = null;
     }
     else
     {
         this.upstreamLocation = upstreamTunnel;
     }
     this.line = line;
 }