using System; using System.Collections.Generic; using System.Linq; using Avalonia.Controls; using DeskHubSharpRevised.Models; namespace DeskHubSharpRevised.BLL; class RepoInfo { public RepoInfo() { } /// /// Returns a list for the list box /// /// A list of strings public List GetRepoInfoList() { List stuff = new List(); try { stuff = RequestList.repoDetail.Select(r => r.full_name).ToList(); } catch (Exception) { ErrorWindow err = new ErrorWindow(); err.txtblk_error = err.Find("txtblk_error"); err.txtblk_error.Text = "Did you search a user? Try that first."; err.btn_error_close = err.Find