private void LaunchGroupsSelecBt_Click(object sender, EventArgs e) { foreach (ListViewItem item in listViewGroups.SelectedItems) { Group group = SearchGroups(item.Text); List <AccountUC> listaccounts = new List <AccountUC>(); foreach (AccountUC account in group.accounts) { //AccountUC acc = new AccountUC(account.Name, account.Password); listaccounts.Add(account); } GroupForm frm = new GroupForm(listaccounts); foreach (AccountUC account in frm.listAccounts) { account.Init(); } frm.Show(); } this.Close(); }
private void LaunchGroupsSelecBt_Click(object sender, EventArgs e) { foreach (ListViewItem item in listViewGroups.SelectedItems) { Group group = SearchGroups(item.Text); List <AccountUC> listaccounts = new List <AccountUC>(); //foreach (AccountUC account in group.accounts) //{ // //AccountUC acc = new AccountUC(account.Name, account.Password); // listaccounts.Add(account); //} GroupForm frm = new GroupForm(group.accounts, group.name); //foreach (AccountUC account in frm.listAccounts) //{ // account.Init(); //} frm.Show(); MainForm.ActualMainForm.AddForm(frm); } Close(); }
private void LaunchGroupsSelecBt_Click(object sender, EventArgs e) { foreach (ListViewItem item in listViewGroups.SelectedItems) { Group group = SearchGroups(item.Text); List<AccountUC> listaccounts = new List<AccountUC>(); //foreach (AccountUC account in group.accounts) //{ // //AccountUC acc = new AccountUC(account.Name, account.Password); // listaccounts.Add(account); //} GroupForm frm = new GroupForm(listaccounts); foreach (AccountUC account in frm.listAccounts) { account.Init(); } frm.Show(); } this.Close(); }