/// <summary> /// 修改拥护修改的连接线的 名称 /// </summary> public void ChangeLineContent() { string ShowText; int i; int Node_ID; if (this.tb_InConnectCondition.Enabled == true) { ShowText = this.cb_inflowNode.Text; i = ShowText.LastIndexOf("ID:"); Node_ID = int.Parse(ShowText.Substring(i + 3, 1)); for (int j = 0; j < this.arr_InFlowLineList.Count; j++) { Line line = (Line)this.arr_InFlowLineList[j]; if (line.SecondNode == this.node && line.FirstNode.NodeListIndex == Node_ID) { line.Content = this.tb_InConnectCondition.Text; } } } if (this.tb_OutConnectCondition.Enabled == true) { ShowText = this.cb_outflowNode.Text; i = ShowText.LastIndexOf("ID:"); Node_ID = int.Parse(ShowText.Substring(i + 3, 1)); for (int j = 0; j < this.arr_OutFlowLineList.Count; j++) { Line line = (Line)this.arr_OutFlowLineList[j]; if (line.FirstNode == this.node && line.SecondNode.NodeListIndex == Node_ID) { line.Content = this.tb_OutConnectCondition.Text; } } } }