FSClient.Account.Account_PropertyChanged C# (CSharp) Method

Account_PropertyChanged() private method

private Account_PropertyChanged ( object sender, System e ) : void
sender object
e System
return void
        private void Account_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            if (e.PropertyName == "is_default_account") {
                if (!is_default_account) {
                    DelayedFunction.DelayedCall("Account_ensure_default", ensure_default_account, 500);
                    return;
                }
                foreach (Account account in accounts)
                    if (account != this)
                        account.is_default_account = false;
                default_account = this;
            }
        }