This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
DeskHubSharp/DeskHubSharp/DetailWindow.xaml.cs
2018-12-03 22:02:07 -05:00

59 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace DeskHubSharp
{
/// <summary>
/// Interaction logic for DetailWindow.xaml
/// </summary>
public partial class DetailWindow : Window
{
private RepoDetail _repoDetail;
public DetailWindow(RepoDetail repoDetail)
{
InitializeComponent();
_repoDetail = repoDetail;
Request request = new Request(_repoDetail.name);
RepoInfo info = new RepoInfo();
request.BranchRequest();
var stuff = info.GetBranchNameComboBox();
cmbbox_branches.ItemsSource = stuff;
lbl_reponame.Content = _repoDetail.full_name;
txtblk_language.Text = $"This repo is mostly {_repoDetail.language} code.";
txtblk_stargazers.Text = $"This repo has {_repoDetail.stargazers_count} stargazers.";
}
private void btn_close_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
}
private void Hyperlink_RequestNavigate_1(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
}
}
}