modified application source files to fit library

This commit is contained in:
Wyatt J. Miller 2022-07-02 14:35:54 -04:00
parent a333807c03
commit d73f21d7ac
4 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,5 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using DeskHubSharpRevised.DAL; using DeskHubSharpRevised.DAL;
using DeskHubSharpRevised.Models; using DeskHubSharpRevised.Models;
@ -63,8 +64,6 @@ public class Request
public List<string> PerformGetSort() public List<string> PerformGetSort()
{ {
Sort sort = new Sort(); return new Sort().GetSortTerms;
var sortTerms = sort.GetSortTerms();
return sortTerms;
} }
} }

View File

@ -10,7 +10,7 @@ namespace DeskHubSharpRevised.DAL;
public class ApiDataService : IDataService public class ApiDataService : IDataService
{ {
private string _apiEndpoint; private string _apiEndpoint;
private string _query; private string _query;
public List<RepoDetail> RepoDetail { get; set; } public List<RepoDetail> RepoDetail { get; set; }

View File

@ -24,7 +24,7 @@ public class JsonDataService : IDataService
{ {
string jsonString = sr.ReadToEnd(); string jsonString = sr.ReadToEnd();
Search.ItemsItem users = JsonConvert.DeserializeObject<Search.ItemsItem>(_dataConfig); ItemsItem users = JsonConvert.DeserializeObject<ItemsItem>(_dataConfig);
//user = users.items; //user = users.items;
} }

View File

@ -42,6 +42,7 @@ public partial class DetailWindow : Window
_repoDetail = repoDetail; _repoDetail = repoDetail;
_request = new Request(_repoDetail.name); _request = new Request(_repoDetail.name);
_owner = new Owner();
_cmbbox_branches_items = this.Find<ComboBox>("cmbbox_branches"); _cmbbox_branches_items = this.Find<ComboBox>("cmbbox_branches");
_txtblk_language_text = this.Find<TextBlock>("txtblk_language"); _txtblk_language_text = this.Find<TextBlock>("txtblk_language");
_txtblk_watchers_text = this.Find<TextBlock>("txtblk_watchers"); _txtblk_watchers_text = this.Find<TextBlock>("txtblk_watchers");
@ -86,7 +87,7 @@ public partial class DetailWindow : Window
else else
{ {
_owner = new Owner(); _owner = new Owner();
string link = "https://github.com/" + _repoDetail.owner.login + "/" + _repoDetail.name + "/archive/" + cmbbox_branches.SelectedItem + ".zip"; string link = "https://github.com/" + _owner.login + "/" + _repoDetail.name + "/archive/" + cmbbox_branches.SelectedItem + ".zip";
Process.Start(link); Process.Start(link);
} }