public void RefreshUserList() { panelUser.Children.Clear(); List <UserInfo> userList = UserAdmin.GetUserInfoList(); foreach (UserInfo user in userList) { BtnUserInfo cbx = new BtnUserInfo(user); cbx.MouseDown += cbxUser_Click; panelUser.Children.Add(cbx); } }
public void RefreshUserList() { userList.ItemsSource = UserAdmin.GetUserInfoList(); }