private void AddLocationBetweenLocationAndNext(int locIndex) { Debug.Assert(locIndex < route.Count); Location midPoint = Navigator.GetLocationBetweenTwoLocations(route[locIndex], route[locIndex + 1]); route.Insert(locIndex + 1, midPoint); }
private void BindToLocation() { LocationController locationController = new LocationController(); LocationCollection locationCollections = locationController.SelectList(); LocationInfo info = new LocationInfo(); info.LocationName = " - Select One - "; info.LocationID = null; locationCollections.Insert(0, info); this.cboToLocation.DisplayMember = "LocationName"; this.cboToLocation.ValueMember = "LocationID"; this.cboToLocation.DataSource = locationCollections; this.cboToLocation.SelectedIndex = 0; }