private void SharedFolderAddItem(LocalhostAccount account) { Config.LocalhostAccountList.Add(account); lbSharedFolderAccounts.Items.Add(account); lbSharedFolderAccounts.SelectedIndex = lbSharedFolderAccounts.Items.Count - 1; SharedFolderUpdateControls(); }
private void LocalhostAccountAddButton_Click(object sender, EventArgs e) { LocalhostAccount acc = new LocalhostAccount(); Config.LocalhostAccountList.Add(acc); ucLocalhostAccounts.AddItem(acc); }