modified application source files to fit library
This commit is contained in:
		@@ -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;
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -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;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user