示例#1
0
 private void addAccounts()
 {
     foreach (Account account in this.main.accountsPanel.Children) {
         AccountSelect acct = new AccountSelect(account.username.Text, this);
         this.selectPanel.Children.Add(acct);
     }
 }
示例#2
0
 private void addAccounts()
 {
     foreach (Account account in this.main.accountsPanel.Children)
     {
         AccountSelect acct = new AccountSelect(account.username.Text, this);
         this.selectPanel.Children.Add(acct);
     }
 }
示例#3
0
 public void removeAccount(AccountSelect acct)
 {
     List<Account> list = new List<Account>();
     foreach (Account account in this.accounts) {
         if (acct.user == account.username.Text) {
             list.Add(account);
         }
     }
     foreach (Account account in list) {
         this.accounts.Remove(account);
     }
     this.main.updateGroups();
 }
示例#4
0
文件: Group.xaml.cs 项目: mgway/rhel
        public void removeAccount(AccountSelect acct)
        {
            List <Account> list = new List <Account>();

            foreach (Account account in this.accounts)
            {
                if (acct.user == account.username.Text)
                {
                    list.Add(account);
                }
            }
            foreach (Account account in list)
            {
                this.accounts.Remove(account);
            }
            this.main.updateGroups();
        }