private void bthGetPushedInfo_Click(object sender, RoutedEventArgs e) { ZipCodeData data = _ProxyStateful.GetZipInfo(); if (data != null) { lblCity.Content = data.City; lblState.Content = data.State; } }
private void GetZipInfoStateful() { if (!string.IsNullOrWhiteSpace(txtZipSearch.Text)) { ZipCodeData data = _ProxyStateful.GetZipInfo(); if (data != null) { lblResponseCity.Content = data.City; lblResponseState.Content = data.State; } } }
private void btnGetInfo_Click(object sender, RoutedEventArgs e) { //GeoClient proxy = new GeoClient("tcpEP"); var data = _Proxy.GetZipInfo(); if (data != null) { lblCity.Content = data.City; lblState.Content = data.State; } //proxy.Close(); }
private void btnGetInfo2_Click(object sender, RoutedEventArgs e) { //GeoClient proxy = new GeoClient("tcpEp"); ZipCodeData data = _Proxy2.GetZipInfo(); if (data != null) { lblCity2.Content = data.City; lblState2.Content = data.State; } else { lblCity2.Content = "N/A"; lblState.Content = "N/A"; } // proxy.Close(); }