예제 #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();
        }