コード例 #1
0
        private async void Cliente_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            switch (e.PropertyName)
            {
            case nameof(this.NuevoCliente.CodigoPostal):
                if (this.NuevoCliente.CodigoPostal != null && this.NuevoCliente.CodigoPostal.Length == 5)
                {
                    this.IsBusy   = true;
                    this.Colonias = await _proxy.FindColoniasAsync(this.NuevoCliente.CodigoPostal);

                    this.IsBusy = false;
                }
                else
                {
                    this.Colonias = null;
                }
                break;
            }
            this.AcceptCommand.RaiseCanExecuteChanged();
        }