Beispiel #1
0
        private void ClearData()
        {
            _textChangedBy = TextChangedSource.Code;

            txtBuildingNumber.Text = string.Empty;
            txtAddressLine1.Text   = string.Empty;
            txtAddressLine2.Text   = string.Empty;
            txtAddressLine3.Text   = string.Empty;
            txtCity.Text           = string.Empty;
            txtZip.Text            = string.Empty;

            ClearAddressHintsList();

            _textChangedBy = TextChangedSource.User;

            toolStripStatusLabel1.Text = "";
        }
Beispiel #2
0
        private void LoadFullAddressFromHint(FullAddress address)
        {
            _textChangedBy = TextChangedSource.Code;

            txtBuildingNumber.Text = address.BuildingNumber;
            txtAddressLine1.Text   = address.Line1;
            txtAddressLine2.Text   = address.Line2;
            txtAddressLine3.Text   = address.Line3;
            txtCity.Text           = address.City;
            txtState.Text          = address.ProvinceCode;
            txtZip.Text            = address.PostalCode;
            cmbCountry.Text        = address.CountryName;

            lstAddressHints.Visible = false;

            toolStripStatusLabel1.Text = "";

            _textChangedBy = TextChangedSource.User;
        }