ClientsLibrary中提供的账户选择功能,支持选择所有,按工厂选择,按角色选择。

This commit is contained in:
dathlin
2017-10-15 21:07:22 +08:00
parent 5a5aeca134
commit 1ec5d80fc3
3 changed files with 12 additions and 6 deletions

View File

@@ -183,9 +183,9 @@ namespace ClientsLibrary.Configuration
if (listBox1.SelectedItem is RoleItem role)
{
// select account
using (FormAccountSelect form = new FormAccountSelect(role.Accounts))
using (FormAccountSelect form = new FormAccountSelect(null, role.Accounts))
{
if(form.ShowDialog() == DialogResult.OK)
if (form.ShowDialog() == DialogResult.OK)
{
role.Accounts = form.SelectAccounts.ConvertAll(m => m.UserName);
listBox2.DataSource = role.Accounts;