From a3be695c7601c6a852b29c288793b88b15daa164 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Thu, 30 Jun 2022 17:49:47 -0400 Subject: [PATCH] added find statements for errorwindow --- DeskHubSharpRevised/BLL/RepoInfo.cs | 20 +++++++++++-------- .../ViewModels/SearchWindowViewModel.cs | 6 ------ 2 files changed, 12 insertions(+), 14 deletions(-) delete mode 100644 DeskHubSharpRevised/ViewModels/SearchWindowViewModel.cs 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