Merge pull request #1 from wymillerlinux/test
SprintOne results to master
This commit is contained in:
commit
0b7e300b8a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -5,11 +5,35 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:DeskHubSharp"
|
xmlns:local="clr-namespace:DeskHubSharp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="AboutWindow" Height="450" Width="400">
|
Title="About - DeskHubSharp" Height="450" Width="400" ResizeMode="NoResize">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Label x:Name="lbl_title" Content="DeskHubSharp" HorizontalAlignment="Left" Margin="2,10,10,0" VerticalAlignment="Top" FontSize="24" Width="372"/>
|
<Label x:Name="lbl_title" Content="DeskHubSharp" HorizontalAlignment="Left" Margin="2,10,10,0" VerticalAlignment="Top" FontSize="24" Width="372"/>
|
||||||
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="307,389,0,0" VerticalAlignment="Top" Width="75" Click="btn_close_Click" Background="#FFFFBABA"/>
|
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="307,389,0,0" VerticalAlignment="Top" Width="75" Click="btn_close_Click" Background="#FFFFBABA"/>
|
||||||
<TextBlock x:Name="txtblk_about1" HorizontalAlignment="Left" Margin="10,57,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="64" Width="372"><Run Text="Written by Wyatt J. Miller"/><LineBreak/><Run Text="Copyright 2018, All rights reserved"/><LineBreak/><Run Text="Licensed under the MIT license"/></TextBlock>
|
<TextBlock x:Name="txtblk_about1" HorizontalAlignment="Left" Margin="10,57,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="64" Width="372"><Run Text="Written and developed by Wyatt J. Miller"/><LineBreak/><Run Text="Copyright 2018, All rights reserved"/><LineBreak/><Run Text="Licensed under the MIT license"/></TextBlock>
|
||||||
<TextBlock x:Name="txtblk_about2" HorizontalAlignment="Left" Margin="10,121,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="87" Width="372"><Run Text="Using technologies Visual Studio, .NET, WPF and Avalonia."/><LineBreak/><Run Text="Want to help with development?"/></TextBlock>
|
<TextBlock x:Name="txtblk_about2" HorizontalAlignment="Left" Margin="10,121,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="36" Width="372"><Run Text="Using technologies including but not limited to Visual Studio, .NET, Newtonsoft, RestSharp, MailKit/Mimekit and WPF."/><LineBreak/><Run/></TextBlock>
|
||||||
|
<TextBlock HorizontalAlignment="Left" Margin="10,363,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="21" Width="372">
|
||||||
|
<!--The following came from the link: https://stackoverflow.com/questions/10238694/example-using-hyperlink-in-wpf-->
|
||||||
|
<Hyperlink NavigateUri="http://github.com/wymillerlinux/DeskhubSharp" RequestNavigate="Hyperlink_RequestNavigate_4" >
|
||||||
|
Want to help with development?
|
||||||
|
</Hyperlink>
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock HorizontalAlignment="Left" Margin="10,162,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="44" Width="364">
|
||||||
|
This project cannot be done without the help of
|
||||||
|
<Hyperlink NavigateUri="https://github.com/johnvelis" RequestNavigate="Hyperlink_RequestNavigate">
|
||||||
|
johnvelis
|
||||||
|
</Hyperlink>
|
||||||
|
,
|
||||||
|
<Hyperlink NavigateUri="https://github.com/NoahFlowa" RequestNavigate="Hyperlink_RequestNavigate_1">
|
||||||
|
NoahFlowa
|
||||||
|
</Hyperlink>
|
||||||
|
,
|
||||||
|
<Hyperlink NavigateUri="https://github.com/Ericgi231" RequestNavigate="Hyperlink_RequestNavigate_2">
|
||||||
|
ericgi231
|
||||||
|
</Hyperlink>
|
||||||
|
, and
|
||||||
|
<Hyperlink NavigateUri="https://github.com/tarkowr" RequestNavigate="Hyperlink_RequestNavigate_3">
|
||||||
|
tarkowr.
|
||||||
|
</Hyperlink>
|
||||||
|
</TextBlock>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -10,6 +11,7 @@ using System.Windows.Documents;
|
|||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
using System.Windows.Shapes;
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
namespace DeskHubSharp
|
namespace DeskHubSharp
|
||||||
@ -28,5 +30,35 @@ namespace DeskHubSharp
|
|||||||
{
|
{
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Hyperlink_RequestNavigate_1(object sender, RequestNavigateEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Hyperlink_RequestNavigate_2(object sender, RequestNavigateEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Hyperlink_RequestNavigate_3(object sender, RequestNavigateEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Hyperlink_RequestNavigate_4(object sender, RequestNavigateEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,28 +39,72 @@ namespace DeskHubSharp
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public void SearchRequest()
|
public void SearchRequest()
|
||||||
{
|
{
|
||||||
var client = new RestClient(_apiEndpoint);
|
try
|
||||||
RestRequest requestRepo = new RestRequest($"users/{_query}/repos", Method.GET);
|
{
|
||||||
|
var client = new RestClient(_apiEndpoint);
|
||||||
|
RestRequest requestRepo = new RestRequest($"users/{_query}/repos", Method.GET);
|
||||||
|
|
||||||
var response = client.Execute(requestRepo);
|
var response = client.Execute(requestRepo);
|
||||||
var x = response.Content;
|
var x = response.Content;
|
||||||
var deserialized = JsonConvert.DeserializeObject<ObservableCollection<RepoDetail>>(x);
|
var deserialized = JsonConvert.DeserializeObject<ObservableCollection<RepoDetail>>(x);
|
||||||
|
|
||||||
RepoList.repoDetail = deserialized;
|
//ObservableCollection<RepoDetail> test = new ObservableCollection<RepoDetail>()
|
||||||
|
//{
|
||||||
|
// new RepoDetail()
|
||||||
|
// {
|
||||||
|
// Login = "John",
|
||||||
|
// Password = "pw"
|
||||||
|
// }
|
||||||
|
//};
|
||||||
|
|
||||||
|
if (deserialized.Count() == 0)
|
||||||
|
{
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
RepoList.repoDetail = deserialized;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
ErrorWindow err = new ErrorWindow();
|
||||||
|
err.txtblk_error.Text = "We couldn't gather repository data. Please try again";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deprecated: Calls API for user data
|
/// Calls API for detailed user data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void UserRequest()
|
public void UserRequest()
|
||||||
{
|
{
|
||||||
var client = new RestClient(_apiEndpoint);
|
try
|
||||||
|
{
|
||||||
|
var client = new RestClient(_apiEndpoint);
|
||||||
|
|
||||||
RestRequest requestUser = new RestRequest($"users/{_query}", Method.GET);
|
RestRequest requestUser = new RestRequest($"users/{_query}", Method.GET);
|
||||||
|
|
||||||
|
var response = client.Execute(requestUser);
|
||||||
|
string x = response.Content;
|
||||||
|
var deserailized = JsonConvert.DeserializeObject<User>(x);
|
||||||
|
|
||||||
|
if (deserailized == null)
|
||||||
|
{
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
RepoList.userDetail = deserailized;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
ErrorWindow err = new ErrorWindow();
|
||||||
|
err.txtblk_error.Text = "We couldn't gather user data. Please try again.";
|
||||||
|
}
|
||||||
|
|
||||||
var response = client.Execute(requestUser);
|
|
||||||
string x = response.ToString();
|
|
||||||
var deserialized = JsonConvert.DeserializeObject<User>(x);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,9 @@
|
|||||||
</ApplicationDefinition>
|
</ApplicationDefinition>
|
||||||
<Compile Include="DAL\JsonDataService.cs" />
|
<Compile Include="DAL\JsonDataService.cs" />
|
||||||
<Compile Include="Models\Email.cs" />
|
<Compile Include="Models\Email.cs" />
|
||||||
|
<Compile Include="Models\License.cs" />
|
||||||
|
<Compile Include="Models\Owner.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>
|
||||||
|
@ -5,11 +5,12 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:DeskHubSharp"
|
xmlns:local="clr-namespace:DeskHubSharp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="Detail - DeskHubSharp" Height="450" Width="800">
|
Title="Detail - DeskHubSharp" Height="450" Width="800" ResizeMode="NoResize">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Label x:Name="lbl_reponame" Content="Repository Name" HorizontalAlignment="Left" Margin="10,47,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.603,-0.2" Width="225" FontSize="16"/>
|
<Label x:Name="lbl_reponame" Content="Repository Name" HorizontalAlignment="Left" Margin="10,47,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.603,-0.2" Width="225" FontSize="16"/>
|
||||||
<Label x:Name="lbl_title" Content="Details" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="171" FontSize="20"/>
|
<Label x:Name="lbl_title" Content="Details" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="171" FontSize="20"/>
|
||||||
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="707,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFABAB" Click="btn_close_Click"/>
|
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="707,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFABAB" Click="btn_close_Click"/>
|
||||||
|
<Button x:Name="btn_clone" Content="Clone" HorizontalAlignment="Left" Margin="240,54,0,0" VerticalAlignment="Top" Width="75" />
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -19,9 +20,14 @@ namespace DeskHubSharp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class DetailWindow : Window
|
public partial class DetailWindow : Window
|
||||||
{
|
{
|
||||||
public DetailWindow()
|
private RepoDetail _repoDetail;
|
||||||
|
|
||||||
|
public DetailWindow(RepoDetail repoDetail)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
_repoDetail = repoDetail;
|
||||||
|
lbl_reponame.Content = _repoDetail.full_name;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btn_close_Click(object sender, RoutedEventArgs e)
|
private void btn_close_Click(object sender, RoutedEventArgs e)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
xmlns:local="clr-namespace:DeskHubSharp"
|
xmlns:local="clr-namespace:DeskHubSharp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="Response - DeskHubSharp" Height="200" Width="300
|
Title="Response - DeskHubSharp" Height="200" Width="300
|
||||||
">
|
" ResizeMode="NoResize">
|
||||||
<Grid>
|
<Grid>
|
||||||
<TextBlock x:Name="txtblk_error" HorizontalAlignment="Left" Margin="10,66,0,0" TextWrapping="Wrap" Text="An error occurred. Please try again." VerticalAlignment="Top" Width="272" TextAlignment="Center" RenderTransformOrigin="0.468,-0.751"/>
|
<TextBlock x:Name="txtblk_error" HorizontalAlignment="Left" Margin="10,66,0,0" TextWrapping="Wrap" Text="An error occurred. Please try again." VerticalAlignment="Top" Width="272" TextAlignment="Center" RenderTransformOrigin="0.468,-0.751"/>
|
||||||
<Button Content="Close" HorizontalAlignment="Left" Margin="112,128,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
|
<Button Content="Close" HorizontalAlignment="Left" Margin="112,128,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:DeskHubSharp"
|
xmlns:local="clr-namespace:DeskHubSharp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="Feedback - DeskHubSharp" Height="450" Width="500">
|
Title="Feedback - DeskHubSharp" Height="450" Width="500" ResizeMode="NoResize">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Label x:Name="lbl_title" Content="Feedback" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="20"/>
|
<Label x:Name="lbl_title" Content="Feedback" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="20"/>
|
||||||
<TextBox x:Name="txtbox_name" HorizontalAlignment="Left" Height="23" Margin="43,159,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="152"/>
|
<TextBox x:Name="txtbox_name" HorizontalAlignment="Left" Height="23" Margin="43,159,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="152"/>
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:DeskHubSharp"
|
xmlns:local="clr-namespace:DeskHubSharp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="HelpWindow" Height="450" Width="400
|
Title="Help - DeskHubSharp" Height="450" Width="400
|
||||||
">
|
" ResizeMode="NoResize">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="307,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFBDBD" Click="btn_close_Click"/>
|
<Button x:Name="btn_close" Content="Close" HorizontalAlignment="Left" Margin="307,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFFFBDBD" Click="btn_close_Click"/>
|
||||||
<Label x:Name="lbl_title" Content="Need some help?" HorizontalAlignment="Left" Margin="3,10,0,0" VerticalAlignment="Top" FontSize="20"/>
|
<Label x:Name="lbl_title" Content="Need some help?" HorizontalAlignment="Left" Margin="3,10,0,0" VerticalAlignment="Top" FontSize="20"/>
|
||||||
|
@ -1,19 +1,31 @@
|
|||||||
<Window x:Class="DeskHubSharp.MainWindow"
|
<Window x:Name="window_main" x:Class="DeskHubSharp.MainWindow"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:DeskHubSharp"
|
xmlns:local="clr-namespace:DeskHubSharp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="DeskHubSharp" Height="450" Width="800">
|
Title="DeskHubSharp" Height="450" Width="805" ResizeMode="NoResize">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Button x:Name="btn_search" Content="Search" HorizontalAlignment="Left" Margin="10,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFA1C8FF" Click="btn_search_Click"/>
|
<Button x:Name="btn_search" Content="Search" HorizontalAlignment="Left" Margin="10,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFA1C8FF" Click="btn_search_Click"/>
|
||||||
<Button x:Name="btn_detail" Content="Detail" HorizontalAlignment="Left" Margin="90,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFA1C8FF" Click="btn_detail_Click"/>
|
<Button x:Name="btn_detail" Content="Detail" HorizontalAlignment="Left" Margin="90,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFA1C8FF" Click="btn_detail_Click"/>
|
||||||
<Button x:Name="btn_feedback" Content="Feedback" HorizontalAlignment="Left" Margin="170,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFD9A1FF" Click="btn_feedback_Click"/>
|
<Button x:Name="btn_feedback" Content="Feedback" HorizontalAlignment="Left" Margin="170,389,0,0" VerticalAlignment="Top" Width="75" Background="#FFD9A1FF" Click="btn_feedback_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_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 HorizontalAlignment="Left" Height="333" Margin="10,10,0,0" VerticalAlignment="Top" Width="772"/>
|
|
||||||
<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"/>
|
||||||
|
<TextBlock x:Name="txtblk_username" Margin="563,99,0,0" TextWrapping="Wrap" Text="-" VerticalAlignment="Top" Height="27" FontSize="16" HorizontalAlignment="Left" Width="224"/>
|
||||||
|
<TextBlock x:Name="txtblk_url" HorizontalAlignment="Left" Margin="563,161,0,0" TextWrapping="Wrap" Text="-" VerticalAlignment="Top" Height="23" Width="217" FontSize="14"/>
|
||||||
|
<TextBlock x:Name="txtblk_bio" HorizontalAlignment="Left" Margin="563,280,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="109" Width="217" FontSize="14" Text="-"/>
|
||||||
|
<TextBlock x:Name="txtblk_email" HorizontalAlignment="Left" Margin="563,224,0,0" TextWrapping="Wrap" Text="-" VerticalAlignment="Top" Height="27" Width="217" RenderTransformOrigin="0.643,0.559" FontSize="14"/>
|
||||||
|
<TextBlock x:Name="txtblk_realname" HorizontalAlignment="Left" Margin="563,34,0,0" TextWrapping="Wrap" Text="-" VerticalAlignment="Top" Height="35" Width="224" FontSize="22"/>
|
||||||
|
<Label x:Name="lbl_realname" Content="Name:" HorizontalAlignment="Left" Margin="563,10,0,0" VerticalAlignment="Top" Height="24" Width="224" FontSize="11" Padding="2,5,5,5"/>
|
||||||
|
<Label x:Name="lbl_username" Content="Username:" HorizontalAlignment="Left" Margin="563,74,0,0" VerticalAlignment="Top" Padding="2,5,5,5" FontSize="11"/>
|
||||||
|
<Label x:Name="lbl_url" Content="GitHub URL:" HorizontalAlignment="Left" Margin="563,131,0,0" VerticalAlignment="Top" Padding="2,5,5,5" FontSize="11"/>
|
||||||
|
<Label x:Name="lbl_email" Content="Email:" HorizontalAlignment="Left" Margin="563,192,0,0" VerticalAlignment="Top" Padding="2,5,5,5" FontSize="11"/>
|
||||||
|
<Label x:Name="lbl_bio" Content="Bio:" HorizontalAlignment="Left" Margin="563,249,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.079,0.397" Padding="2,5,5,5"/>
|
||||||
|
<ListBox x:Name="ListBox" HorizontalAlignment="Left" Height="265" Margin="10,10,0,0" VerticalAlignment="Top" Width="519"/>
|
||||||
|
<TextBlock x:Name="txtblk_repocount" HorizontalAlignment="Left" Margin="10,280,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="65" Width="519" RenderTransformOrigin="0.496,0.482"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
@ -12,6 +12,7 @@ using System.Windows.Media;
|
|||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
using System.Windows.Navigation;
|
using System.Windows.Navigation;
|
||||||
using System.Windows.Shapes;
|
using System.Windows.Shapes;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
|
||||||
namespace DeskHubSharp
|
namespace DeskHubSharp
|
||||||
{
|
{
|
||||||
@ -20,16 +21,18 @@ namespace DeskHubSharp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : Window
|
||||||
{
|
{
|
||||||
|
private ObservableCollection<RepoDetail> _repoDetail;
|
||||||
|
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
//ShowDataGridItems();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btn_detail_Click(object sender, RoutedEventArgs e)
|
private void btn_detail_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
DetailWindow detail = new DetailWindow();
|
RepoDetail repo = _repoDetail[ListBox.SelectedIndex];
|
||||||
|
DetailWindow detail = new DetailWindow(repo);
|
||||||
detail.ShowDialog();
|
detail.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +62,30 @@ namespace DeskHubSharp
|
|||||||
private void btn_search_Click(object sender, RoutedEventArgs e)
|
private void btn_search_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
SearchWindow search = new SearchWindow();
|
SearchWindow search = new SearchWindow();
|
||||||
|
RepoInfo info = new RepoInfo();
|
||||||
|
Owner owner = new Owner();
|
||||||
search.ShowDialog();
|
search.ShowDialog();
|
||||||
|
var stuff = info.GetRepoInfoDataGrid();
|
||||||
|
_repoDetail = RepoList.repoDetail;
|
||||||
|
ListBox.ItemsSource = stuff;
|
||||||
|
txtblk_username.Text = RepoList.userDetail.login;
|
||||||
|
txtblk_url.Text = RepoList.userDetail.html_url;
|
||||||
|
txtblk_bio.Text = RepoList.userDetail.bio;
|
||||||
|
txtblk_email.Text = RepoList.userDetail.blog;
|
||||||
|
txtblk_realname.Text = RepoList.userDetail.name;
|
||||||
|
txtblk_repocount.Text = $"{RepoList.userDetail.login} has {RepoList.userDetail.public_repos} public repositories.";
|
||||||
|
//img_avatar.Source = RepoList.repoDetail[0].owner.avatar_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//public void ShowDataGridItems()
|
||||||
|
//{
|
||||||
|
// DataGrid.ItemsSource = RepoList.repoDetail;
|
||||||
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
32
DeskHubSharp/Models/License.cs
Normal file
32
DeskHubSharp/Models/License.cs
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace DeskHubSharp
|
||||||
|
{
|
||||||
|
public class License
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string key { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string name { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string spdx_id { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string node_id { get; set; }
|
||||||
|
}
|
||||||
|
}
|
84
DeskHubSharp/Models/Owner.cs
Normal file
84
DeskHubSharp/Models/Owner.cs
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace DeskHubSharp
|
||||||
|
{
|
||||||
|
public class Owner
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string login { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int id { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string node_id { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string avatar_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string gravatar_id { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string html_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string followers_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string following_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string gists_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string starred_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string subscriptions_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string organizations_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string repos_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string events_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string received_events_url { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string type { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string site_admin { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -1,397 +1,297 @@
|
|||||||
|
using DeskHubSharp;
|
||||||
|
|
||||||
namespace DeskHubSharp
|
namespace DeskHubSharp
|
||||||
{
|
{
|
||||||
public class RepoDetail
|
public class RepoDetail
|
||||||
{
|
{
|
||||||
public class Owner
|
public Owner Owner { get; set; }
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string login { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int id { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string node_id { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string avatar_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string gravatar_id { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string html_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string followers_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string following_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string gists_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string starred_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string subscriptions_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string organizations_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string repos_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string events_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string received_events_url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string type { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string site_admin { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class License
|
public License License { get; set; }
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string key { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string name { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string spdx_id { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string url { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string node_id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Root
|
public int id { get; set; }
|
||||||
{
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string node_id { get; set; }
|
||||||
public int id { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string name { get; set; }
|
||||||
public string node_id { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string full_name { get; set; }
|
||||||
public string name { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
//public string private { get; set; }
|
||||||
public string full_name { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public Owner owner { get; set; }
|
||||||
//public string private { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string html_url { get; set; }
|
||||||
public Owner owner { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string description { get; set; }
|
||||||
public string html_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string fork { get; set; }
|
||||||
public string description { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string url { get; set; }
|
||||||
public string fork { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string forks_url { get; set; }
|
||||||
public string url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string keys_url { get; set; }
|
||||||
public string forks_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string collaborators_url { get; set; }
|
||||||
public string keys_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string teams_url { get; set; }
|
||||||
public string collaborators_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string hooks_url { get; set; }
|
||||||
public string teams_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string issue_events_url { get; set; }
|
||||||
public string hooks_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string events_url { get; set; }
|
||||||
public string issue_events_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string assignees_url { get; set; }
|
||||||
public string events_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string branches_url { get; set; }
|
||||||
public string assignees_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string tags_url { get; set; }
|
||||||
public string branches_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string blobs_url { get; set; }
|
||||||
public string tags_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string git_tags_url { get; set; }
|
||||||
public string blobs_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string git_refs_url { get; set; }
|
||||||
public string git_tags_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string trees_url { get; set; }
|
||||||
public string git_refs_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string statuses_url { get; set; }
|
||||||
public string trees_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string languages_url { get; set; }
|
||||||
public string statuses_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string stargazers_url { get; set; }
|
||||||
public string languages_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string contributors_url { get; set; }
|
||||||
public string stargazers_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string subscribers_url { get; set; }
|
||||||
public string contributors_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string subscription_url { get; set; }
|
||||||
public string subscribers_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string commits_url { get; set; }
|
||||||
public string subscription_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string git_commits_url { get; set; }
|
||||||
public string commits_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string comments_url { get; set; }
|
||||||
public string git_commits_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string issue_comment_url { get; set; }
|
||||||
public string comments_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string contents_url { get; set; }
|
||||||
public string issue_comment_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string compare_url { get; set; }
|
||||||
public string contents_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string merges_url { get; set; }
|
||||||
public string compare_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string archive_url { get; set; }
|
||||||
public string merges_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string downloads_url { get; set; }
|
||||||
public string archive_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string issues_url { get; set; }
|
||||||
public string downloads_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string pulls_url { get; set; }
|
||||||
public string issues_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string milestones_url { get; set; }
|
||||||
public string pulls_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string notifications_url { get; set; }
|
||||||
public string milestones_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string labels_url { get; set; }
|
||||||
public string notifications_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string releases_url { get; set; }
|
||||||
public string labels_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string deployments_url { get; set; }
|
||||||
public string releases_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string created_at { get; set; }
|
||||||
public string deployments_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string updated_at { get; set; }
|
||||||
public string created_at { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string pushed_at { get; set; }
|
||||||
public string updated_at { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string git_url { get; set; }
|
||||||
public string pushed_at { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string ssh_url { get; set; }
|
||||||
public string git_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string clone_url { get; set; }
|
||||||
public string ssh_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string svn_url { get; set; }
|
||||||
public string clone_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string homepage { get; set; }
|
||||||
public string svn_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public int size { get; set; }
|
||||||
public string homepage { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public int stargazers_count { get; set; }
|
||||||
public int size { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public int watchers_count { get; set; }
|
||||||
public int stargazers_count { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string language { get; set; }
|
||||||
public int watchers_count { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string has_issues { get; set; }
|
||||||
public string language { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string has_projects { get; set; }
|
||||||
public string has_issues { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string has_downloads { get; set; }
|
||||||
public string has_projects { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string has_wiki { get; set; }
|
||||||
public string has_downloads { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string has_pages { get; set; }
|
||||||
public string has_wiki { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public int forks_count { get; set; }
|
||||||
public string has_pages { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string mirror_url { get; set; }
|
||||||
public int forks_count { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string archived { get; set; }
|
||||||
public string mirror_url { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public int open_issues_count { get; set; }
|
||||||
public string archived { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public License license { get; set; }
|
||||||
public int open_issues_count { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public int forks { get; set; }
|
||||||
public License license { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public int open_issues { get; set; }
|
||||||
public int forks { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public int watchers { get; set; }
|
||||||
public int open_issues { get; set; }
|
/// <summary>
|
||||||
/// <summary>
|
///
|
||||||
///
|
/// </summary>
|
||||||
/// </summary>
|
public string default_branch { get; set; }
|
||||||
public int watchers { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string default_branch { get; set; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
25
DeskHubSharp/Models/RepoInfo.cs
Normal file
25
DeskHubSharp/Models/RepoInfo.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
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 List<string> GetRepoInfoDataGrid()
|
||||||
|
{
|
||||||
|
List<string> stuff = RepoList.repoDetail.Select(x => x.full_name).ToList();
|
||||||
|
//stuff =+ RepoList.repoDetail.Select(x => x.name).ToList();
|
||||||
|
return stuff;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -11,6 +11,8 @@ namespace DeskHubSharp
|
|||||||
{
|
{
|
||||||
private static ObservableCollection<RepoDetail> _repoDetail;
|
private static ObservableCollection<RepoDetail> _repoDetail;
|
||||||
|
|
||||||
|
public static User userDetail { get; set; }
|
||||||
|
|
||||||
public static ObservableCollection<RepoDetail> repoDetail
|
public static ObservableCollection<RepoDetail> repoDetail
|
||||||
{
|
{
|
||||||
get { return _repoDetail; }
|
get { return _repoDetail; }
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:DeskHubSharp"
|
xmlns:local="clr-namespace:DeskHubSharp"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="SearchWindow" Height="200" Width="500">
|
Title="Search - DeskHubSharp" Height="200" Width="500" ResizeMode="NoResize">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Label x:Name="lbl_search" Content="Search" HorizontalAlignment="Left" Margin="17,15,0,0" VerticalAlignment="Top" FontSize="20" Padding="2,5,5,5"/>
|
<Label x:Name="lbl_search" Content="Search" HorizontalAlignment="Left" Margin="17,15,0,0" VerticalAlignment="Top" FontSize="20" Padding="2,5,5,5"/>
|
||||||
<TextBox x:Name="txtbox_query" HorizontalAlignment="Left" Height="23" Margin="17,79,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="465"/>
|
<TextBox x:Name="txtbox_query" HorizontalAlignment="Left" Height="23" Margin="17,79,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="465"/>
|
||||||
|
@ -33,6 +33,10 @@ namespace DeskHubSharp
|
|||||||
{
|
{
|
||||||
Request request = new Request(txtbox_query.Text);
|
Request request = new Request(txtbox_query.Text);
|
||||||
request.SearchRequest();
|
request.SearchRequest();
|
||||||
|
request.UserRequest();
|
||||||
|
//MainWindow main = new MainWindow();
|
||||||
|
//main.ShowDialog();
|
||||||
|
this.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
ac6d87119126ef96a9551362a1832c83be77d6c5
|
5719003caa9368fdbade249bbbe98f747b8af257
|
||||||
|
@ -12,7 +12,7 @@ DEBUG;TRACE
|
|||||||
C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
|
C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
|
||||||
7-86569338
|
7-86569338
|
||||||
|
|
||||||
22-1533856682
|
25696652050
|
||||||
20415715258
|
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;
|
||||||
|
|
||||||
|
@ -12,9 +12,9 @@ DEBUG;TRACE
|
|||||||
C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
|
C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
|
||||||
7-86569338
|
7-86569338
|
||||||
|
|
||||||
25-65043429
|
29498133693
|
||||||
20415715258
|
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;
|
||||||
|
|
||||||
True
|
False
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "814C08D5FA0D40972C7641EDC7C65F0E68227ECE"
|
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0EAA4E5953DD54A83EF84C8979256F95CA55AC47"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
@ -41,6 +41,14 @@ namespace DeskHubSharp {
|
|||||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||||
|
|
||||||
|
|
||||||
|
#line 1 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal DeskHubSharp.MainWindow window_main;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 10 "..\..\MainWindow.xaml"
|
#line 10 "..\..\MainWindow.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.Button btn_search;
|
internal System.Windows.Controls.Button btn_search;
|
||||||
@ -88,6 +96,102 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 17 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_username;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 18 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_url;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 19 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_bio;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 20 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_email;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 21 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_realname;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 22 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_realname;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 23 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_username;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 24 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_url;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 25 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_email;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 26 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_bio;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 27 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.ListBox ListBox;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 28 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_repocount;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
private bool _contentLoaded;
|
private bool _contentLoaded;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -119,6 +223,9 @@ namespace DeskHubSharp {
|
|||||||
switch (connectionId)
|
switch (connectionId)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
this.window_main = ((DeskHubSharp.MainWindow)(target));
|
||||||
|
return;
|
||||||
|
case 2:
|
||||||
this.btn_search = ((System.Windows.Controls.Button)(target));
|
this.btn_search = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 10 "..\..\MainWindow.xaml"
|
#line 10 "..\..\MainWindow.xaml"
|
||||||
@ -127,7 +234,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 2:
|
case 3:
|
||||||
this.btn_detail = ((System.Windows.Controls.Button)(target));
|
this.btn_detail = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 11 "..\..\MainWindow.xaml"
|
#line 11 "..\..\MainWindow.xaml"
|
||||||
@ -136,7 +243,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 3:
|
case 4:
|
||||||
this.btn_feedback = ((System.Windows.Controls.Button)(target));
|
this.btn_feedback = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 12 "..\..\MainWindow.xaml"
|
#line 12 "..\..\MainWindow.xaml"
|
||||||
@ -145,7 +252,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 4:
|
case 5:
|
||||||
this.btn_help = ((System.Windows.Controls.Button)(target));
|
this.btn_help = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 13 "..\..\MainWindow.xaml"
|
#line 13 "..\..\MainWindow.xaml"
|
||||||
@ -154,7 +261,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 5:
|
case 6:
|
||||||
this.btn_about = ((System.Windows.Controls.Button)(target));
|
this.btn_about = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 14 "..\..\MainWindow.xaml"
|
#line 14 "..\..\MainWindow.xaml"
|
||||||
@ -163,7 +270,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 6:
|
case 7:
|
||||||
this.btn_exit = ((System.Windows.Controls.Button)(target));
|
this.btn_exit = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 16 "..\..\MainWindow.xaml"
|
#line 16 "..\..\MainWindow.xaml"
|
||||||
@ -172,6 +279,42 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
|
case 8:
|
||||||
|
this.txtblk_username = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 9:
|
||||||
|
this.txtblk_url = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 10:
|
||||||
|
this.txtblk_bio = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 11:
|
||||||
|
this.txtblk_email = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 12:
|
||||||
|
this.txtblk_realname = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 13:
|
||||||
|
this.lbl_realname = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 14:
|
||||||
|
this.lbl_username = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 15:
|
||||||
|
this.lbl_url = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 16:
|
||||||
|
this.lbl_email = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 17:
|
||||||
|
this.lbl_bio = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 18:
|
||||||
|
this.ListBox = ((System.Windows.Controls.ListBox)(target));
|
||||||
|
return;
|
||||||
|
case 19:
|
||||||
|
this.txtblk_repocount = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this._contentLoaded = true;
|
this._contentLoaded = true;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "814C08D5FA0D40972C7641EDC7C65F0E68227ECE"
|
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0EAA4E5953DD54A83EF84C8979256F95CA55AC47"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
@ -41,6 +41,14 @@ namespace DeskHubSharp {
|
|||||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||||
|
|
||||||
|
|
||||||
|
#line 1 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal DeskHubSharp.MainWindow window_main;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 10 "..\..\MainWindow.xaml"
|
#line 10 "..\..\MainWindow.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.Button btn_search;
|
internal System.Windows.Controls.Button btn_search;
|
||||||
@ -88,6 +96,102 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 17 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_username;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 18 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_url;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 19 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_bio;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 20 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_email;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 21 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_realname;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 22 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_realname;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 23 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_username;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 24 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_url;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 25 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_email;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 26 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Label lbl_bio;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 27 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.ListBox ListBox;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 28 "..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.TextBlock txtblk_repocount;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
private bool _contentLoaded;
|
private bool _contentLoaded;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -119,6 +223,9 @@ namespace DeskHubSharp {
|
|||||||
switch (connectionId)
|
switch (connectionId)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
this.window_main = ((DeskHubSharp.MainWindow)(target));
|
||||||
|
return;
|
||||||
|
case 2:
|
||||||
this.btn_search = ((System.Windows.Controls.Button)(target));
|
this.btn_search = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 10 "..\..\MainWindow.xaml"
|
#line 10 "..\..\MainWindow.xaml"
|
||||||
@ -127,7 +234,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 2:
|
case 3:
|
||||||
this.btn_detail = ((System.Windows.Controls.Button)(target));
|
this.btn_detail = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 11 "..\..\MainWindow.xaml"
|
#line 11 "..\..\MainWindow.xaml"
|
||||||
@ -136,7 +243,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 3:
|
case 4:
|
||||||
this.btn_feedback = ((System.Windows.Controls.Button)(target));
|
this.btn_feedback = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 12 "..\..\MainWindow.xaml"
|
#line 12 "..\..\MainWindow.xaml"
|
||||||
@ -145,7 +252,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 4:
|
case 5:
|
||||||
this.btn_help = ((System.Windows.Controls.Button)(target));
|
this.btn_help = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 13 "..\..\MainWindow.xaml"
|
#line 13 "..\..\MainWindow.xaml"
|
||||||
@ -154,7 +261,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 5:
|
case 6:
|
||||||
this.btn_about = ((System.Windows.Controls.Button)(target));
|
this.btn_about = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 14 "..\..\MainWindow.xaml"
|
#line 14 "..\..\MainWindow.xaml"
|
||||||
@ -163,7 +270,7 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 6:
|
case 7:
|
||||||
this.btn_exit = ((System.Windows.Controls.Button)(target));
|
this.btn_exit = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 16 "..\..\MainWindow.xaml"
|
#line 16 "..\..\MainWindow.xaml"
|
||||||
@ -172,6 +279,42 @@ namespace DeskHubSharp {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
|
case 8:
|
||||||
|
this.txtblk_username = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 9:
|
||||||
|
this.txtblk_url = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 10:
|
||||||
|
this.txtblk_bio = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 11:
|
||||||
|
this.txtblk_email = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 12:
|
||||||
|
this.txtblk_realname = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
|
case 13:
|
||||||
|
this.lbl_realname = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 14:
|
||||||
|
this.lbl_username = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 15:
|
||||||
|
this.lbl_url = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 16:
|
||||||
|
this.lbl_email = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 17:
|
||||||
|
this.lbl_bio = ((System.Windows.Controls.Label)(target));
|
||||||
|
return;
|
||||||
|
case 18:
|
||||||
|
this.ListBox = ((System.Windows.Controls.ListBox)(target));
|
||||||
|
return;
|
||||||
|
case 19:
|
||||||
|
this.txtblk_repocount = ((System.Windows.Controls.TextBlock)(target));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this._contentLoaded = true;
|
this._contentLoaded = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user