private void btnGetDirections_Click(object sender, System.EventArgs e) { String [] directions = service.getDirections( fromStreet.Text, fromCity.Text, fromState.Text, fromZip.Text, toStreet.Text, toCity.Text, toState.Text, toZip.Text); directionsList.DataSource = directions; }
private void btnGetDirections_Click(object sender, System.EventArgs e) { String [] directions = service.getDirections( fromStreet.Text, fromCity.Text, fromState.Text, fromZip.Text, toStreet.Text, toCity.Text, toState.Text, toZip.Text); ArrayList al = new ArrayList(); al.Add("Overview Map"); for (int i = 0; i < directions.Length; i++) { al.Add(directions[i]); } directionsList.DataSource = al; }