Ejemplo n.º 1
0
        public void BulidWay(WaySetter ws)
        {
            IRoadNet inet = RoadNet.GetInstance();

            Way            = inet.BuildWay(this.Shape.Start, this.Shape.End);
            Way.Name       = ws.TBWayName.Text + Way.ID.ToString();
            Way.TrueLength = (double)ws.TBLength.Value;
            ///先创建一个车道做测试
            int iLaneCount = System.Convert.ToInt32(ws.TBLaneCount.Value);

            Way.AddLane(LaneType.All);
            Way.Shape = EntityShape.CreateShape(this.shape);
        }
Ejemplo n.º 2
0
        internal virtual bool ShowParamSetting(Point drawEndPoint)
        {
            if (this.WaySetter == null)
            {
                this.WaySetter = new WaySetter();
            }
            this.WaySetter.Location = drawEndPoint;

            if (this.WaySetter.ShowDialog() == DialogResult.OK)
            {
                this.IsStateChanged = true;
                return(true);
            }
            this.IsStateChanged = false;
            return(false);
        }