private void tuennalfacebox_changed(object sender, SelectionChangedEventArgs e) { string _facepile = tunnelfacebox.SelectedValue.ToString(); tunnelpile = DrawObjects.getSectionPos(_facepile); tunnelpile.sectionnumber = DrawObjects.getrightSectionnumber(tunnelpile.pilepoint); //找到该桩号的设计衬砌类型 foreach (MILI obj in mili_objList) { Pile t1 = DrawObjects.getSectionPos(obj.MILI_STAR); Pile t2 = DrawObjects.getSectionPos(obj.MILI_END); if (t1.tunnelpart != tunnelpile.tunnelpart) { continue; } if ((t1.pilepoint <= tunnelpile.pilepoint) && (t2.pilepoint >= tunnelpile.pilepoint)) { design_type = obj.MILI_LNTY; break; } } disgntype.Text = design_type; }