//构造函数 public MetroLink(MetroNode node1, MetroNode node2, MetroLine line, int flag) { this.Node1 = node1; this.Node2 = node2; this.Line = line; this.Flag = flag; }
//删除总路线 public bool deleteLine(MetroLine killLine) { try { _mLines.Remove(killLine); } catch (System.Exception ex) { return false; } return true; }
//添加总路线 public bool addLine(MetroLine newLine) { try { _mLines.Add(newLine); } catch (System.Exception ex) { return false; } return true; }