ATMLCommonLibrary.controls.MailingAddressControl.cbMailingState_BindingContextChanged C# (CSharp) Method

cbMailingState_BindingContextChanged() private method

private cbMailingState_BindingContextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void cbMailingState_BindingContextChanged( object sender, EventArgs e )
        {
            foreach (dbState state in cbMailingState.Items)
            {
                if (state.stateCode.Equals( _mailingAddress.State ) || state.stateName.Equals( _mailingAddress.State ))
                {
                    cbMailingState.SelectedItem = state;
                    break;
                }
            }
        }