Ejemplo n.º 1
0
 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;
         }
     }
 }
Ejemplo n.º 2
0
 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;
         }
     }
 }
Ejemplo n.º 3
0
 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;
         }
     }
 }
Ejemplo n.º 4
0
        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();
            }
        }
Ejemplo n.º 5
0
        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();
            }
        }