public AccountSelect(string user, GroupSelect gs) { InitializeComponent(); this.user = user; this.usern.Text = this.user; this.gs = gs; foreach (Account acct in this.gs.getParent().getAccounts()) { if (this.user == acct.username.Text) { this.groupCheck.IsChecked = true; } } }
private void configure_Click(object sender, RoutedEventArgs e) { GroupSelect select = new GroupSelect(this.main, this); select.Show(); }