Example #1
0
        private void AddLocationBetweenLocationAndNext(int locIndex)
        {
            Debug.Assert(locIndex < route.Count);
            Location midPoint = Navigator.GetLocationBetweenTwoLocations(route[locIndex], route[locIndex + 1]);

            route.Insert(locIndex + 1, midPoint);
        }
Example #2
0
        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;
        }