private void btnInRange_Click(object sender, RoutedEventArgs e) { if (txtRange.Text != "") { var data = _Proxy2.GetZips(int.Parse(txtRange.Text)); if (data != null) { lstZips2.ItemsSource = data; } } }
private void btnGetInRange_Click(object sender, RoutedEventArgs e) { if ((!string.IsNullOrWhiteSpace(txtZipSearch.Text)) && (!string.IsNullOrWhiteSpace(txtRange.Text))) { IEnumerable <ZipCodeData> data = _ProxyStateful.GetZips(Convert.ToInt32(txtRange.Text)); if (data != null) { lstZips.ItemsSource = data; } } }
private void btnGetInRange_Click(object sender, RoutedEventArgs e) { if (txtRange.Text != "") { IEnumerable <ZipCodeData> data = _ProxyStateful.GetZips(int.Parse(txtRange.Text)); if (data != null) { lstZips.ItemsSource = data; } } }
private void btnRange_Click(object sender, RoutedEventArgs e) { if (txtZipCode.Text != "" && txtState.Text != "") { // StatefulGeoClient proxy = new StatefulGeoClient(); IEnumerable <ZipCodeData> data = _Proxy.GetZips(int.Parse(txtState.Text)); if (data != null) { lbxResponse.ItemsSource = data; } // proxy.Close(); } }
private void btnGetInRange_Click(object sender, RoutedEventArgs e) { if (txtState.Text != string.Empty) { //GeoClient proxy = new GeoClient("tcpEP"); var data = _Proxy.GetZips(int.Parse(txtState.Text)); if (data != null) { lstZips.ItemsSource = data; } //_Proxy.Close(); } }