private void btn_FromAdrToAdr_Click(object sender, EventArgs e) { string fromAdr = cmb_fromAdr.Text; string toAdr = cmb_toAdr.Text; string[] Reutrn = bcApp.SCApplication.RouteGuide.DownstreamSearchSection(fromAdr, toAdr, 0); StringBuilder sb = new StringBuilder(); if (string.IsNullOrEmpty(Reutrn[0])) { sb.AppendLine("SegmentClosed"); } else { var allRoute = Reutrn[1].Split(';'); foreach (string route in allRoute) { sb.AppendLine(route); } sb.AppendLine("<MinRoute>"); sb.AppendLine(Reutrn[0]); } txt_Route.Text = sb.ToString(); var minRoute = Reutrn[0].Split('='); string[] minRouteSeg = minRoute[0].Split(','); bcApp.onTestGuideSectionSearch(minRouteSeg); }