diff --git a/DeskHubSharpRevised/BLL/RepoInfo.cs b/DeskHubSharpRevised/BLL/RepoInfo.cs index 8536fbe..7d91481 100644 --- a/DeskHubSharpRevised/BLL/RepoInfo.cs +++ b/DeskHubSharpRevised/BLL/RepoInfo.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using Avalonia.Controls; using DeskHubSharpRevised.Models; namespace DeskHubSharpRevised.BLL; @@ -13,22 +14,25 @@ class RepoInfo } /// - /// Return a list for the list box + /// Returns a list for the list box /// - /// + /// A list of strings public List GetRepoInfoList() { List stuff = new List(); try { - stuff = RequestList.repoDetail.Select(x => x.full_name).ToList(); + stuff = RequestList.repoDetail.Select(r => r.full_name).ToList(); } catch (Exception) { ErrorWindow err = new ErrorWindow(); - err.txtblk_error.Text = "We couldn't gather any data. Does the user exist?"; - err.btn_error_close.Content = "FUCK!"; + 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