omg i have items come up on the datagrid

This commit is contained in:
Wyatt Miller 2018-11-29 23:32:48 -05:00
parent 4a7c908a77
commit a75121e187
22 changed files with 347 additions and 341 deletions

Binary file not shown.

View File

@ -55,10 +55,10 @@ namespace DeskHubSharp
// } // }
//}; //};
RepoList.repoDetail = deserialized; RepoList.repoDetail = deserialized;
} }
/// <summary> /// <summary>
/// Deprecated: Calls API for user data /// Deprecated: Calls API for user data
/// </summary> /// </summary>

View File

@ -75,7 +75,7 @@
<Compile Include="Models\Email.cs" /> <Compile Include="Models\Email.cs" />
<Compile Include="Models\License.cs" /> <Compile Include="Models\License.cs" />
<Compile Include="Models\Owner.cs" /> <Compile Include="Models\Owner.cs" />
<Compile Include="Models\Root.cs" /> <Compile Include="Models\RepoInfo.cs" />
<Compile Include="SearchWindow.xaml.cs"> <Compile Include="SearchWindow.xaml.cs">
<DependentUpon>SearchWindow.xaml</DependentUpon> <DependentUpon>SearchWindow.xaml</DependentUpon>
</Compile> </Compile>

View File

@ -13,7 +13,7 @@
<Button x:Name="btn_help" Content="Help" HorizontalAlignment="Left" Margin="250,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFFF9D" Click="btn_help_Click"/> <Button x:Name="btn_help" Content="Help" HorizontalAlignment="Left" Margin="250,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFFF9D" Click="btn_help_Click"/>
<Button x:Name="btn_about" Content="About" HorizontalAlignment="Left" Margin="627,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFAFFBAB" Click="btn_about_Click"/> <Button x:Name="btn_about" Content="About" HorizontalAlignment="Left" Margin="627,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFAFFBAB" Click="btn_about_Click"/>
<DataGrid Name="DataGrid" AutoGenerateColumns="True" HorizontalAlignment="Left" Height="333" Margin="10,10,0,0" VerticalAlignment="Top" Width="772" SelectionChanged="DataGrid_SelectionChanged"/> <DataGrid Name="DataGrid" AutoGenerateColumns="True" HorizontalAlignment="Left" Height="333" Margin="10,10,0,0" VerticalAlignment="Top" Width="772" SelectionChanged="DataGrid_SelectionChanged" IsReadOnly="True"/>
<Button x:Name="btn_exit" Content="Exit" HorizontalAlignment="Left" Margin="707,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFF9999" Click="btn_exit_Click"/> <Button x:Name="btn_exit" Content="Exit" HorizontalAlignment="Left" Margin="707,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFF9999" Click="btn_exit_Click"/>

View File

@ -21,12 +21,10 @@ namespace DeskHubSharp
/// </summary> /// </summary>
public partial class MainWindow : Window public partial class MainWindow : Window
{ {
SearchWindow search = new SearchWindow();
public MainWindow() public MainWindow()
{ {
InitializeComponent(); InitializeComponent();
ShowDataGridItems(); //ShowDataGridItems();
} }
private void btn_detail_Click(object sender, RoutedEventArgs e) private void btn_detail_Click(object sender, RoutedEventArgs e)
@ -60,12 +58,12 @@ namespace DeskHubSharp
private void btn_search_Click(object sender, RoutedEventArgs e) private void btn_search_Click(object sender, RoutedEventArgs e)
{ {
SearchWindow search = new SearchWindow();
RepoInfo info = new RepoInfo();
search.ShowDialog(); search.ShowDialog();
//var stuff = info.GetRepoInfoDataGrid();
ObservableCollection<RepoDetail> test = RepoList.repoDetail; ObservableCollection<RepoDetail> test = RepoList.repoDetail;
DataGrid.ItemsSource = test; DataGrid.ItemsSource = test;
RepoDetail rp = new RepoDetail();
rp.Owner.avatar_url
} }
private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
@ -73,10 +71,10 @@ namespace DeskHubSharp
} }
public void ShowDataGridItems() //public void ShowDataGridItems()
{ //{
DataGrid.ItemsSource = RepoList.repoDetail; // DataGrid.ItemsSource = RepoList.repoDetail;
} //}
} }
} }

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace DeskHubSharp.Models namespace DeskHubSharp
{ {
public class License public class License
{ {

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace DeskHubSharp.Models namespace DeskHubSharp
{ {
public class Owner public class Owner
{ {

View File

@ -1,17 +1,297 @@
using DeskHubSharp;
using DeskHubSharp.Models;
namespace DeskHubSharp namespace DeskHubSharp
{ {
public class RepoDetail public class RepoDetail
{ {
//public string Login { get; set; }
//public string Password { get; set; }
public Owner Owner { get; set; } public Owner Owner { get; set; }
public License License { get; set; } public License License { get; set; }
public Root Root { get; set; } public int id { get; set; }
/// <summary>
///
/// </summary>
public string node_id { get; set; }
/// <summary>
///
/// </summary>
public string name { get; set; }
/// <summary>
///
/// </summary>
public string full_name { get; set; }
/// <summary>
///
/// </summary>
//public string private { get; set; }
/// <summary>
///
/// </summary>
public Owner owner { get; set; }
/// <summary>
///
/// </summary>
public string html_url { get; set; }
/// <summary>
///
/// </summary>
public string description { get; set; }
/// <summary>
///
/// </summary>
public string fork { get; set; }
/// <summary>
///
/// </summary>
public string url { get; set; }
/// <summary>
///
/// </summary>
public string forks_url { get; set; }
/// <summary>
///
/// </summary>
public string keys_url { get; set; }
/// <summary>
///
/// </summary>
public string collaborators_url { get; set; }
/// <summary>
///
/// </summary>
public string teams_url { get; set; }
/// <summary>
///
/// </summary>
public string hooks_url { get; set; }
/// <summary>
///
/// </summary>
public string issue_events_url { get; set; }
/// <summary>
///
/// </summary>
public string events_url { get; set; }
/// <summary>
///
/// </summary>
public string assignees_url { get; set; }
/// <summary>
///
/// </summary>
public string branches_url { get; set; }
/// <summary>
///
/// </summary>
public string tags_url { get; set; }
/// <summary>
///
/// </summary>
public string blobs_url { get; set; }
/// <summary>
///
/// </summary>
public string git_tags_url { get; set; }
/// <summary>
///
/// </summary>
public string git_refs_url { get; set; }
/// <summary>
///
/// </summary>
public string trees_url { get; set; }
/// <summary>
///
/// </summary>
public string statuses_url { get; set; }
/// <summary>
///
/// </summary>
public string languages_url { get; set; }
/// <summary>
///
/// </summary>
public string stargazers_url { get; set; }
/// <summary>
///
/// </summary>
public string contributors_url { get; set; }
/// <summary>
///
/// </summary>
public string subscribers_url { get; set; }
/// <summary>
///
/// </summary>
public string subscription_url { get; set; }
/// <summary>
///
/// </summary>
public string commits_url { get; set; }
/// <summary>
///
/// </summary>
public string git_commits_url { get; set; }
/// <summary>
///
/// </summary>
public string comments_url { get; set; }
/// <summary>
///
/// </summary>
public string issue_comment_url { get; set; }
/// <summary>
///
/// </summary>
public string contents_url { get; set; }
/// <summary>
///
/// </summary>
public string compare_url { get; set; }
/// <summary>
///
/// </summary>
public string merges_url { get; set; }
/// <summary>
///
/// </summary>
public string archive_url { get; set; }
/// <summary>
///
/// </summary>
public string downloads_url { get; set; }
/// <summary>
///
/// </summary>
public string issues_url { get; set; }
/// <summary>
///
/// </summary>
public string pulls_url { get; set; }
/// <summary>
///
/// </summary>
public string milestones_url { get; set; }
/// <summary>
///
/// </summary>
public string notifications_url { get; set; }
/// <summary>
///
/// </summary>
public string labels_url { get; set; }
/// <summary>
///
/// </summary>
public string releases_url { get; set; }
/// <summary>
///
/// </summary>
public string deployments_url { get; set; }
/// <summary>
///
/// </summary>
public string created_at { get; set; }
/// <summary>
///
/// </summary>
public string updated_at { get; set; }
/// <summary>
///
/// </summary>
public string pushed_at { get; set; }
/// <summary>
///
/// </summary>
public string git_url { get; set; }
/// <summary>
///
/// </summary>
public string ssh_url { get; set; }
/// <summary>
///
/// </summary>
public string clone_url { get; set; }
/// <summary>
///
/// </summary>
public string svn_url { get; set; }
/// <summary>
///
/// </summary>
public string homepage { get; set; }
/// <summary>
///
/// </summary>
public int size { get; set; }
/// <summary>
///
/// </summary>
public int stargazers_count { get; set; }
/// <summary>
///
/// </summary>
public int watchers_count { get; set; }
/// <summary>
///
/// </summary>
public string language { get; set; }
/// <summary>
///
/// </summary>
public string has_issues { get; set; }
/// <summary>
///
/// </summary>
public string has_projects { get; set; }
/// <summary>
///
/// </summary>
public string has_downloads { get; set; }
/// <summary>
///
/// </summary>
public string has_wiki { get; set; }
/// <summary>
///
/// </summary>
public string has_pages { get; set; }
/// <summary>
///
/// </summary>
public int forks_count { get; set; }
/// <summary>
///
/// </summary>
public string mirror_url { get; set; }
/// <summary>
///
/// </summary>
public string archived { get; set; }
/// <summary>
///
/// </summary>
public int open_issues_count { get; set; }
/// <summary>
///
/// </summary>
public License license { get; set; }
/// <summary>
///
/// </summary>
public int forks { get; set; }
/// <summary>
///
/// </summary>
public int open_issues { get; set; }
/// <summary>
///
/// </summary>
public int watchers { get; set; }
/// <summary>
///
/// </summary>
public string default_branch { get; set; }
} }
} }

View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeskHubSharp
{
class RepoInfo
{
public RepoInfo()
{
}
public ObservableCollection<RepoDetail> GetRepoInfoDataGrid()
{
ObservableCollection<RepoDetail> repoStuff = new ObservableCollection<RepoDetail>();
RepoDetail repo = new RepoDetail();
//repoStuff.Add(RepoList.repoDetail[3]);
//repoStuff.Add(repo.url);
return repoStuff;
}
}
}

View File

@ -1,300 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeskHubSharp.Models
{
public class Root
{
/// <summary>
///
/// </summary>
public int id { get; set; }
/// <summary>
///
/// </summary>
public string node_id { get; set; }
/// <summary>
///
/// </summary>
public string name { get; set; }
/// <summary>
///
/// </summary>
public string full_name { get; set; }
/// <summary>
///
/// </summary>
//public string private { get; set; }
/// <summary>
///
/// </summary>
public Owner owner { get; set; }
/// <summary>
///
/// </summary>
public string html_url { get; set; }
/// <summary>
///
/// </summary>
public string description { get; set; }
/// <summary>
///
/// </summary>
public string fork { get; set; }
/// <summary>
///
/// </summary>
public string url { get; set; }
/// <summary>
///
/// </summary>
public string forks_url { get; set; }
/// <summary>
///
/// </summary>
public string keys_url { get; set; }
/// <summary>
///
/// </summary>
public string collaborators_url { get; set; }
/// <summary>
///
/// </summary>
public string teams_url { get; set; }
/// <summary>
///
/// </summary>
public string hooks_url { get; set; }
/// <summary>
///
/// </summary>
public string issue_events_url { get; set; }
/// <summary>
///
/// </summary>
public string events_url { get; set; }
/// <summary>
///
/// </summary>
public string assignees_url { get; set; }
/// <summary>
///
/// </summary>
public string branches_url { get; set; }
/// <summary>
///
/// </summary>
public string tags_url { get; set; }
/// <summary>
///
/// </summary>
public string blobs_url { get; set; }
/// <summary>
///
/// </summary>
public string git_tags_url { get; set; }
/// <summary>
///
/// </summary>
public string git_refs_url { get; set; }
/// <summary>
///
/// </summary>
public string trees_url { get; set; }
/// <summary>
///
/// </summary>
public string statuses_url { get; set; }
/// <summary>
///
/// </summary>
public string languages_url { get; set; }
/// <summary>
///
/// </summary>
public string stargazers_url { get; set; }
/// <summary>
///
/// </summary>
public string contributors_url { get; set; }
/// <summary>
///
/// </summary>
public string subscribers_url { get; set; }
/// <summary>
///
/// </summary>
public string subscription_url { get; set; }
/// <summary>
///
/// </summary>
public string commits_url { get; set; }
/// <summary>
///
/// </summary>
public string git_commits_url { get; set; }
/// <summary>
///
/// </summary>
public string comments_url { get; set; }
/// <summary>
///
/// </summary>
public string issue_comment_url { get; set; }
/// <summary>
///
/// </summary>
public string contents_url { get; set; }
/// <summary>
///
/// </summary>
public string compare_url { get; set; }
/// <summary>
///
/// </summary>
public string merges_url { get; set; }
/// <summary>
///
/// </summary>
public string archive_url { get; set; }
/// <summary>
///
/// </summary>
public string downloads_url { get; set; }
/// <summary>
///
/// </summary>
public string issues_url { get; set; }
/// <summary>
///
/// </summary>
public string pulls_url { get; set; }
/// <summary>
///
/// </summary>
public string milestones_url { get; set; }
/// <summary>
///
/// </summary>
public string notifications_url { get; set; }
/// <summary>
///
/// </summary>
public string labels_url { get; set; }
/// <summary>
///
/// </summary>
public string releases_url { get; set; }
/// <summary>
///
/// </summary>
public string deployments_url { get; set; }
/// <summary>
///
/// </summary>
public string created_at { get; set; }
/// <summary>
///
/// </summary>
public string updated_at { get; set; }
/// <summary>
///
/// </summary>
public string pushed_at { get; set; }
/// <summary>
///
/// </summary>
public string git_url { get; set; }
/// <summary>
///
/// </summary>
public string ssh_url { get; set; }
/// <summary>
///
/// </summary>
public string clone_url { get; set; }
/// <summary>
///
/// </summary>
public string svn_url { get; set; }
/// <summary>
///
/// </summary>
public string homepage { get; set; }
/// <summary>
///
/// </summary>
public int size { get; set; }
/// <summary>
///
/// </summary>
public int stargazers_count { get; set; }
/// <summary>
///
/// </summary>
public int watchers_count { get; set; }
/// <summary>
///
/// </summary>
public string language { get; set; }
/// <summary>
///
/// </summary>
public string has_issues { get; set; }
/// <summary>
///
/// </summary>
public string has_projects { get; set; }
/// <summary>
///
/// </summary>
public string has_downloads { get; set; }
/// <summary>
///
/// </summary>
public string has_wiki { get; set; }
/// <summary>
///
/// </summary>
public string has_pages { get; set; }
/// <summary>
///
/// </summary>
public int forks_count { get; set; }
/// <summary>
///
/// </summary>
public string mirror_url { get; set; }
/// <summary>
///
/// </summary>
public string archived { get; set; }
/// <summary>
///
/// </summary>
public int open_issues_count { get; set; }
/// <summary>
///
/// </summary>
public License license { get; set; }
/// <summary>
///
/// </summary>
public int forks { get; set; }
/// <summary>
///
/// </summary>
public int open_issues { get; set; }
/// <summary>
///
/// </summary>
public int watchers { get; set; }
/// <summary>
///
/// </summary>
public string default_branch { get; set; }
}
}

View File

@ -1,4 +1,4 @@
#pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "5E7C2DBB667F025FC5CA90C6A4E4064F" #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8924CF88FE4A7948C7314277251E7D79D8D8F350"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.

View File

@ -1,4 +1,4 @@
#pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "5E7C2DBB667F025FC5CA90C6A4E4064F" #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8924CF88FE4A7948C7314277251E7D79D8D8F350"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.

View File

@ -1 +1 @@
1ed704c72fbef8b947e00c3acdcc79224cc0d429 5719003caa9368fdbade249bbbe98f747b8af257

View File

@ -4,16 +4,16 @@
winexe winexe
C# C#
.cs .cs
C:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\obj\Debug\ C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\obj\Debug\
DeskHubSharp DeskHubSharp
none none
false false
DEBUG;TRACE DEBUG;TRACE
C:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\App.xaml C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
7-86569338 7-86569338
251446439089 25696652050
20-856998346 20415715258
AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml; AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml;
False False

View File

@ -4,16 +4,16 @@
winexe winexe
C# C#
.cs .cs
C:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\obj\Debug\ C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\obj\Debug\
DeskHubSharp DeskHubSharp
none none
false false
DEBUG;TRACE DEBUG;TRACE
C:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\App.xaml C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
7-86569338 7-86569338
29215114908 29498133693
20-856998346 20415715258
AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml; AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml;
False False

View File

@ -1,10 +1,10 @@
 
FC:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\AboutWindow.xaml;; FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\AboutWindow.xaml;;
FC:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\DetailWindow.xaml;; FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\DetailWindow.xaml;;
FC:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\ErrorWindow.xaml;; FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\ErrorWindow.xaml;;
FC:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\FeedbackWindow.xaml;; FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\FeedbackWindow.xaml;;
FC:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\HelpWindow.xaml;; FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\HelpWindow.xaml;;
FC:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\MainWindow.xaml;; FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\MainWindow.xaml;;
FC:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\SearchWindow.xaml;; FC:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\SearchWindow.xaml;;

View File

@ -1,4 +1,4 @@
#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F66D9D84B7140209B2D4A05C05CC2536" #pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "27CBA43F396CB857DB0A7BC37CC204BAD58C13B8"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.

View File

@ -1,4 +1,4 @@
#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F66D9D84B7140209B2D4A05C05CC2536" #pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "27CBA43F396CB857DB0A7BC37CC204BAD58C13B8"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.