コード例 #1
0
        private void bthGetPushedInfo_Click(object sender, RoutedEventArgs e)
        {
            ZipCodeData data = _ProxyStateful.GetZipInfo();

            if (data != null)
            {
                lblCity.Content  = data.City;
                lblState.Content = data.State;
            }
        }
コード例 #2
0
 private void GetZipInfoStateful()
 {
     if (!string.IsNullOrWhiteSpace(txtZipSearch.Text))
     {
         ZipCodeData data = _ProxyStateful.GetZipInfo();
         if (data != null)
         {
             lblResponseCity.Content  = data.City;
             lblResponseState.Content = data.State;
         }
     }
 }
コード例 #3
0
        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();
        }
コード例 #4
0
        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();
        }