Пример #1
0
        /// <summary>
        /// Occurs when the user leaves the Zipcode field.
        /// </summary>
        /// <param name="sender">The object sender</param>
        /// <param name="e">The event args</param>
        private void registerZipBox_Leave(object sender, EventArgs e)
        {
            bool verify = RegisterVerification.ZipVerifacation(registerZipBox.Text);

            ChangeBackColorTextBox(registerZipBox, verify);
            _isZipOk = verify;

            if (verify)
            {
                registerCityBox.Text = JSONReader.GetCity(int.Parse(registerZipBox.Text));
            }
        }
Пример #2
0
 public string GetCity_recieveZipCode_returnsCityName(int zip)
 {
     return(JSONReader.GetCity(zip));
 }