BlockStudio.CustomControls.ConnectionPanel.RefreshAccounts C# (CSharp) Method

RefreshAccounts() private method

private RefreshAccounts ( ) : void
return void
        private void RefreshAccounts()
        {
            cmbAccounts.Items.Clear();
            foreach (var account in BlockStudioProjectService.BlockStudioProject.Accounts)
            {
                //account.ToStringValue = String.Format("{0} - {1} Eth", account.Label, account.BalanceEther);
                cmbAccounts.Items.Add(account);
            }

            if (cmbAccounts.Items.Count > 0)
            {
                cmbAccounts.SelectedIndex = 0;
            }
        }